getArgs: getArgs

Description Usage Arguments Details Value Author(s)

View source: R/deprecated.r

Description

commandArgs parsing (DEPRECATED) return a named list of command line arguments

Usage

1
getArgs(verbose = FALSE, defaults = NULL)

Arguments

verbose

print verbage to screen

defaults

a named list of defaults, optional

Details

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"

Value

a named list

Author(s)

Chris Wallace


carjed/smaug documentation built on May 5, 2019, 3:49 a.m.