Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Duncan Murdoch
On 9/7/2007 2:05 PM, Paul Smith wrote: > On 9/7/07, Barry Rowlingson <[EMAIL PROTECTED]> wrote: >> > When one loads certain packages, some other dependent packages are >> > loaded as well. Is there some way of detaching them automatically when >> > one detaches the first package loaded? For instanc

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Paul Smith
On 9/7/07, Barry Rowlingson <[EMAIL PROTECTED]> wrote: > > When one loads certain packages, some other dependent packages are > > loaded as well. Is there some way of detaching them automatically when > > one detaches the first package loaded? For instance, > > > >> library(sqldf) > > Loading requi

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Barry Rowlingson
Paul Smith wrote: > Dear All, > > When one loads certain packages, some other dependent packages are > loaded as well. Is there some way of detaching them automatically when > one detaches the first package loaded? For instance, > >> library(sqldf) > Loading required package: RSQLite > Loading re

Re: [R] Automatic detachment of dependent packages

2007-09-07 Thread Gabor Grothendieck
If its good enough just to get rid of all attached packages since after startup you could just do repeated detaches like this making use of the fact that search() has 9 components on startup: replicate(length(search()) - 9, detach()) On 9/7/07, Paul Smith <[EMAIL PROTECTED]> wrote: > Dear All, >

[R] Automatic detachment of dependent packages

2007-09-07 Thread Paul Smith
Dear All, When one loads certain packages, some other dependent packages are loaded as well. Is there some way of detaching them automatically when one detaches the first package loaded? For instance, > library(sqldf) Loading required package: RSQLite Loading required package: DBI Loading require