[R] mysterious (to me) automatic loading of packages when R starts up

Dieter Menne dieter.menne at menne-biomed.de
Thu Apr 24 09:28:26 CEST 2008


Duncan Mackay <duncan.mackay <at> flinders.edu.au> writes:

> I have recently noticed that in one of my work areas, a number of packages
> are automatically loaded without my explicitly requesting them to be loaded
> (see below). This only happens in one particular workspace (located in a
> folder). I suspect (without any real evidence) that this may be related to
> my creating plots using the ggplot2 package earlier in this workspace.
> 
> 
> Loading required package: proto
> Loading required package: grid
> Loading required package: reshape
> [Previously saved workspace restored]

Whenever you see the last line, there is an .Rdata-file in you startup
directory. Delete it, and use

rgui.exe --no-restore --no-save 

to start R (assuming Windows) to avoid the automatic loading/saving (which I
find confusing).

Dieter



More information about the R-help mailing list