This is just a convenience wrapper for opening several modules at once, recursively.
A module is defined as any file that ends in .R
or .r
and has a
directory name identical to its filename. Thus, this must be case sensitive.
openModules(name, path)
# S4 method for class 'character,character'
openModules(name, path)
# S4 method for class 'missing,missing'
openModules()
# S4 method for class 'missing,character'
openModules(path)
# S4 method for class 'character,missing'
openModules(name)
# S4 method for class 'simList,missing'
openModules(name)
NULL (invisibly). All file are open via file.edit
.
On Windows there is currently a bug in RStudio that prevents the editor
from opening when file.edit
is called. file.edit
does work if the
user types it at the command prompt. A message with the correct lines to copy
and paste is provided.
# \donttest{
if (interactive())
openModules("modules")
# }