Description Usage Arguments Details Value Author(s)
commandArgs parsing (DEPRECATED) return a named list of command line arguments
1 |
verbose |
print verbage to screen |
defaults |
a named list of defaults, optional |
Usage: call the R script thus ./myfile.R –args myarg=something or R CMD BATCH –args myarg=something myfile.R
Then in R do myargs <- getArgs() and myargs will be a named list > str(myargs) List of 2 $ file : chr "myfile.R" $ myarg: chr "something"
a named list
Chris Wallace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.