[R] Making R script to run in a console

Romain Francois francoisromain at free.fr
Mon Aug 14 23:12:31 CEST 2006


Le 14.08.2006 19:12, Ronaldo Reis-Jr. a écrit :
> Hi,
>
> is possible to make a R script to run under a console without open the R 
> environment?
>
> Something like this example.R
>
> #!/usr/bin/R
>
> function(name="Put here your name") {
> print(name)
> }
>
> In a console I make
> ./example.R name="Ronaldo Reis Júnior"
> then program print my name.
>
> It is possible?
>
> Thanks
> Ronaldo
>   
Hi,

take a look at that wiki page : 
http://wiki.r-project.org/rwiki/doku.php?id=developers:rinterp

Cheers,

Romain

-- 
+-------------------------------------------------------------------+
|                         Romain FRANCOIS                           |
| R Graph Gallery : http://addictedtor.free.fr/graphiques           |
`-------------------------------------------------------------------+



More information about the R-help mailing list