Create R variables from command line parameters

Share:

Description

Take the names of the variables specified on the R CMD BATCH call and turn them into R variables Assign the values after '=' to these variables.

Usage

1

Value

variable(s) stored in memory

Examples

1
2
3
4
5
6
7
## Not run: 
## R CMD BATCH --some.variable=testing
cmdArgsToVariables() 
print(some.variable)
#> 'testing'

## End(Not run)