in reply to Passing parameters to R script
##In a file called test_args.R args <- commandArgs() print (args)
which you can run from the shell
cat test_args.R | R --slave --args all your base
which prints
[1] "usr/lib64/R/bin/exec/R" "--slave" [3] "--args" "all" [5] "your" "base"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Passing parameters to R script
by j1n3l0 (Friar) on Oct 17, 2007 at 19:09 UTC | |
by Anonymous Monk on Apr 22, 2009 at 14:37 UTC | |
by Anonymous Monk on Jun 08, 2010 at 09:39 UTC | |
by Anonymous Monk on Jan 09, 2011 at 14:28 UTC | |
by Anonymous Monk on Jan 06, 2011 at 03:53 UTC | |
by Anonymous Monk on Feb 01, 2012 at 19:25 UTC |