Re: [R] Making R script to run in a console

From: Romain Francois <francoisromain_at_free.fr>
Date: Tue 15 Aug 2006 - 07:12:31 EST

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           |
`-------------------------------------------------------------------+

______________________________________________
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.
Received on Tue Aug 15 07:28:14 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 15 Aug 2006 - 08:22:57 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.