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