Description Usage Arguments Details Value Note Author(s) See Also Examples
The pipeline parameters can be stored in a simple file,
formatted as R code.
The parametersFromFile
function transforms them into
a parameter list used by RaMWAS steps.
1 | parametersFromFile(.parameterfile)
|
.parameterfile |
Name of the file with the parameters set as R variables. See the example below. |
Variables with names starting with period (.) are ignored.
Returns the list with all the variables set in the file.
The file .parameterfile
is executed as R code,
so use only trusted parameter files.
Andrey A Shabalin andrey.shabalin@gmail.com
See vignettes: browseVignettes("ramwas")
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | filename = tempfile()
# Create a file with lines
# dirproject = "."
# modelcovariates = c("Age","Sex")
writeLines(
con = filename,
text = c(
"dirproject = \".\"",
"modelcovariates = c(\"Age\",\"Sex\")")
)
# Scan the file into a list
param = parametersFromFile(filename)
# Show the list
print(param)
file.remove(filename)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.