On Thu, Mar 01, 2012 at 11:18:33PM -0800, statquant2 wrote:
> Hey Petr,
> ok I was thinking that R would handle the split by itself.
> I guess using eval we can even make arg1=val1 being executed by R.
Hi.
For executing the assignments, try myRscript.R containing
args <- commandArgs(TRUE);
a
Hey Petr,
ok I was thinking that R would handle the split by itself.
I guess using eval we can even make arg1=val1 being executed by R.
Ok tx
Colin
--
View this message in context:
http://r.789695.n4.nabble.com/Rscript-example-tp4436130p4437659.html
Sent from the R help mailing list archive at
On Thu, Mar 01, 2012 at 11:53:00AM -0800, statquant2 wrote:
> 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=val
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(TR
4 matches
Mail list logo