evalCommandArgs

Share:

Description

evaluate args passed to a batch script

Usage

1

Arguments

args

the commands to be evaluated

envir

the environment where args should be evaluated

Author(s)

Thomas Wutzler

Examples

1
2
3
4
5
6
system('Rscript -e "str(commandArgs(TRUE))" i=1 n=8')
as.list(evalCommandArgs(args=c("i=1","n=8")))
if( FALSE ){
    # do not run automatically, as it depends on twMisc installed
    system('Rscript -e "library(twMisc); str(as.list(evalCommandArgs())); ls()" i=1 n=8')
}

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.