View source: R/sysargslist_utilities.R
SPRproject | R Documentation |
Function to construct SYSargsList
workflow control environment (S4 object).
This function creates and checks the directory structure. If the expected directories
are not available, it is possible to create those.
The project directory default structure expected is:
SPRproject/
data/
param/
results/
The project working directory names can be modified, but users need to edit the code accordingly.
SPRproject(projPath = getwd(), data = "data", param = "param", results = "results",
logs.dir= ".SPRproject", sys.file="SYSargsList.yml",
envir = new.env(),
restart = FALSE, resume=FALSE,
load.envir = FALSE,
overwrite = FALSE, silent = FALSE)
projPath |
a character vector of a full project path name. Default is the current path. |
data |
a character vector of a |
param |
a character vector of a |
results |
a character vector of a |
logs.dir |
a character vector of a |
sys.file |
a character vector of |
envir |
the environment in which workflow will be evaluated. Default will create
a |
restart |
if set to |
resume |
if set to |
load.envir |
This argument allows to load the environment and recover all the objects saved
during the workflow execution (please check |
overwrite |
if set to |
silent |
if set to TRUE, all messages returned by the function will be suppressed. |
If an SYSargsList
instance was created before or independent of the
project initialization, it is possible to append this instance after the
project is created. Please see check appendStep<-
function.
SPRproject
will return a SYSargsList
object.
Daniela Cassol
See also as SYSargsList-class
.
sal <- SPRproject(projPath = tempdir())
sal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.