newProject | R Documentation |
Initialize a project with subdirectories ‘cache/’, ‘modules/’,
‘inputs/’, ‘outputs/’, and setPaths
accordingly.
If invoked from Rstudio, will also create a new Rstudio project file.
newProject(name, path, open)
## S4 method for signature 'character,character,logical'
newProject(name, path, open)
## S4 method for signature 'character,character,missing'
newProject(name, path, open)
name |
project name (name of project directory) |
path |
path to directory in which to create the project directory |
open |
Logical. Should the new project file be opened after creation?
Default |
invoked for side effect of project file creation
myProjDir <- newProject("myProject", tempdir())
dir.exists(file.path(myProjDir, "cache"))
dir.exists(file.path(myProjDir, "inputs"))
dir.exists(file.path(myProjDir, "modules"))
dir.exists(file.path(myProjDir, "outputs"))
unlink(myProjDir, recursive = TRUE) ## cleanup
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.