Thanks.

R.

On Thursday 23 November 2006 16:32, Prof Brian Ripley wrote:
> On Thu, 23 Nov 2006, Ramon Diaz-Uriarte wrote:
> > On Thursday 23 November 2006 15:44, Prof Brian Ripley wrote:
> >> Try this:
> >>
> >> gannet% cat month.R
> >> x <- commandArgs()
> >> print(x[length(x)])
> >>
> >> gannet% R --slave --args January < month.R
> >> [1] "January"
> >
> > Is the above
> > "R --slave --args January < month.R"
> > the preferred way of using it?
>
> Yes it is.  That's exactly what --args was added to allow.
>
> > I tend to use
> >
> > "R --slave < month.R January"
> >
> > instead (as a consequence of reconverting former scripts that used R CMD
> > BATCH). The second call produces a "ARGUMENT 'January' __ignored__" but
> > otherwise seems to do the same thing.

-- 
Ramón Díaz-Uriarte
Bioinformatics 
Centro Nacional de Investigaciones Oncológicas (CNIO)
(Spanish National Cancer Center)
Melchor Fernández Almagro, 3
28029 Madrid (Spain)
Fax: +-34-91-224-6972
Phone: +-34-91-224-6900

http://ligarto.org/rdiaz
PGP KeyID: 0xE89B3462
(http://ligarto.org/rdiaz/0xE89B3462.asc)



**NOTA DE CONFIDENCIALIDAD** Este correo electrónico, y en s...{{dropped}}

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to