Duncan Mackay
2008-Apr-24 00:25 UTC
[R] mysterious (to me) automatic loading of packages when R starts up
Hello, 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. I am running R 2.7.0 under Vista but I noticed the same behavior under R 2.6.2 last week. Can someone please tell me why this is happening and how I can prevent this automatic package loading in this workspace? Thanks, Duncan " R version 2.7.0 (2008-04-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. Loading required package: proto Loading required package: grid Loading required package: reshape [Previously saved workspace restored] " ____________________________________________________________________________ __ Dr. Duncan Mackay School of Biological Sciences Flinders University GPO Box 2100 Adelaide S.A. 5001 AUSTRALIA Phone 61-8-82012627 FAX 61-8-82013015 http://www.scieng.flinders.edu.au/biology/people/academic/mackay_d/index.htm l
Dieter Menne
2008-Apr-24 07:28 UTC
[R] mysterious (to me) automatic loading of packages when R starts up
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