[R] Multiple copies of attached packages

2005-04-14 Thread Fernando Saldanha
I have noticed that after I ran a batch script multiple times I get multiple copies of a package's name when I call search(). Is this a problem? search() [1] .GlobalEnvDF DF [4] DF DF DF multiple copies here ... [13] DF DF DF

RE: [R] Multiple copies of attached packages

2005-04-14 Thread Liaw, Andy
I suspect you've attach()'ed `DF' multiple times in your code (possibly inside a loop, or perhaps a function that was called several times). Note that if it were a `package', it would show up in search() as `package:DF' rather than just `DF'. Also, R Core folks took care to avoid attaching the

RE: [R] Multiple copies of attached packages

2005-04-14 Thread Prof Brian Ripley
On Thu, 14 Apr 2005, Liaw, Andy wrote: I suspect you've attach()'ed `DF' multiple times in your code (possibly inside a loop, or perhaps a function that was called several times). Note that if it were a `package', it would show up in search() as `package:DF' rather than just `DF'. Also, R Core