evalCommandArgs: evalCommandArgs

Description Usage Arguments Author(s) Examples

View source: R/misc.R

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')
}

twMisc documentation built on May 2, 2019, 6:11 p.m.