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.