Re: [R] Setting global variables in a function

2009-02-22 Thread Eik Vettorazzi
see ?'<<-' hth. Will Stone schrieb: Hi, I am writing a function that plots many graphs so therefore I have it turn recording on. The problem is; that when it is run again, the new graphs get added to the old ones, doubling the amount recorded. I know that .SavedPlots<-NULL removes the recorded

[R] Setting global variables in a function

2009-02-22 Thread Will Stone
Hi, I am writing a function that plots many graphs so therefore I have it turn recording on. The problem is; that when it is run again, the new graphs get added to the old ones, doubling the amount recorded. I know that .SavedPlots<-NULL removes the recorded plots but how can this be done from insi