[R] rm(list=ls())

Wet Bell Diver
Mon, 05 Mar 2012 23:29:08 -0000

R-2.14.2, Win7 x64

Dear list,

I have the habit of including rm(list=ls()) at the top of most of my
scripts. However, I wonder whether rm(list=ls()) gives the exact same
result as closing R and starting again fresh.
In other words, is it possible that there will be differences on how a
script runs under a fresh start of R versus when I "only" use
rm(list=ls()) , or should both approaches give the exact same starting
situation every time?

Thanks,
Peter