[R] Making R script to run in a console

Ronaldo Reis-Jr. chrysopa at gmail.com
Mon Aug 14 19:12:02 CEST 2006


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 em gmail.com
| ICQ#: 5692561 | LinuxUser#: 205366



More information about the R-help mailing list