Learn R Programming

caroline (version 0.7.4)

cmdArgsToVariables: Create R variables from command line parameters

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

cmdArgsToVariables()

Arguments

Value

  • variable(s) stored in memory

Examples

Run this code
## R CMD BATCH --some.variable=testing
cmdArgsToVariables() 
print(some.variable)
#> 'testing'

Run the code above in your browser using DataLab