[R] scripts with littler

John Lawrence Aspden news at aspden.com
Tue Jan 9 19:39:12 CET 2007


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



More information about the R-help mailing list