[R] Making R script to run in a console

From: Ronaldo Reis-Jr. <chrysopa_at_gmail.com>
Date: Tue 15 Aug 2006 - 03:12:02 EST


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

-- 
A jury consists of twelve persons chosen to decide who has the better lawyer.
		-- Robert Frost
--

> Prof. Ronaldo Reis Júnior
| .''`. UNIMONTES/Depto. Biologia Geral/Lab. Ecologia Evolutiva | : :' : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil | `- Fone: (38) 3229-8190 | chrysopa@gmail.com | ICQ#: 5692561 | LinuxUser#: 205366 ______________________________________________ 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 03:16:21 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 - 10:21:55 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.