[R] Rscript example

statquant2 statquant at gmail.com
Thu Mar 1 20:53:00 CET 2012


Hi there,
I am trying to find an example how to use Rscript
Let's suppose I want to pass 3 arguments (I don't want [options] and -e
[expressions] as described in help) 

*on the command line
myRscript.R -arg1=value1 -arg2=value2 -arg3=value3

*In the script
#! /path/to/Rscript
args = commandArgs(TRUE);

>From what I see args is just a string, do I do things correctly ?

--
View this message in context: http://r.789695.n4.nabble.com/Rscript-example-tp4436130p4436130.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list