View source: R/batch_management.R
loadParams | R Documentation |
Loads neonMicrobe processing parameters from a specified file to a specified environment, usually associated with a processing batch.
loadParams(params_file, env = NULL, verbose = TRUE)
params_file |
Filepath to R script containing name-value assignments (e.g. x = 1) that will be used to create an environment. |
env |
Environment in which to load the parameters. By default (NULL), searches for current processing batch environment. If found, loads parameters there. |
verbose |
Default TRUE. Whether to print warning message if a parameter has already been assigned in a processing batch. |
## Not run:
e <- new.env()
ls(e) # character(0)
loadParams("./R/test_params.R", env=e)
ls(e) # "x" "y"
get("x", e) # "hello there"
get("y", e) # "goodbye now"
loadParams("./R/test_params.R", env=e) # warning
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.