On Mon, 2006-08-14 at 14:12 -0300, Ronaldo Reis-Jr. wrote:
> 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

Ronaldo,

You might want to review these web pages:

http://wiki.r-project.org/rwiki/doku.php?id=developers:rinterp

http://kavaro.fi/mediawiki/index.php/Using_R_from_the_shell


HTH,

Marc Schwartz

______________________________________________
[email protected] 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