Re: [R] scripts with littler

From: John Lawrence Aspden <news_at_aspden.com>
Date: Tue 09 Jan 2007 - 15:22:19 GMT

Guys, thanks very much for your help. Rscript looks great and I'll look forward to it.

The /usr/bin/env thing seems to be a general difficulty with the mechanism. One's first thought has to be to modify env to parse and then pass the arguments in the expected way (maybe #!/usr/bin/env2?), and of course one's second is that this must already have been done...

An S of TFW produces 'Citizens for a better env', but this isn't as hopeful as it sounds.

I'm actually tempted to use

#!/usr/bin/env r
rm(list=ls())

as the first two lines of every script, rather than messing about trying to pass options.

Cheers, John.

-- 
Contractor in Cambridge UK -- http://www.aspden.com

______________________________________________
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 Wed Jan 10 14:53:43 2007

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 Wed 10 Jan 2007 - 04:30:27 GMT.

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