Re: [R] scripts with littler

From: John Lawrence Aspden <news_at_aspden.com>
Date: Tue 09 Jan 2007 - 18:39:12 GMT

John Lawrence Aspden wrote:

> I'm actually tempted to use
>
> #!/usr/bin/env r
> rm(list=ls())

Ahem, it turns out to be better to use:

#!/usr/bin/env r
rm(list=ls()[ls()!="argv"])

-- 
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 06:34:06 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 Tue 09 Jan 2007 - 20:30:31 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.