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 character,character,logical
newProject(name, path, open)
# S4 method for character,character,missing
newProject(name, path, open)
Arguments
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 TRUE in an interactive session. |
Examples
#> Setting:
#> options(
#> reproducible.cachePath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/cache'
#> spades.inputPath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/inputs'
#> spades.outputPath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/outputs'
#> spades.modulePath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/modules'
#> )
#> Paths set to:
#> options(
#> rasterTmpDir = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/raster'
#> reproducible.cachePath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/cache'
#> spades.inputPath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/inputs'
#> spades.outputPath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/outputs'
#> spades.modulePath = '/private/var/folders/l2/hy6b0sl977bcd8695nt6j7s80000gn/T/RtmpRqC26y/myProject/modules'
#> )
#> [1] TRUE
#> [1] TRUE
#> [1] TRUE
#> [1] TRUE