##In a file called test_args.R args <- commandArgs() print (args) #### cat test_args.R | R --slave --args all your base #### [1] "usr/lib64/R/bin/exec/R" "--slave" [3] "--args" "all" [5] "your" "base"
## cat test_args.R | R --slave --args all your base ##
## [1] "usr/lib64/R/bin/exec/R" "--slave" [3] "--args" "all" [5] "your" "base"