Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Henrik Bengtsson
This can happens if save an object with an environment part of a package, e.g. $ R --quiet --vanilla > fcn <- Matrix::Matrix > environment(fcn) > quit("yes") # saves the workspace in an .RData file # Loading the .RData file at startup triggers 'Matrix' to be loaded $ R --quiet --no-init-file -e

Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Jeff Newmiller
Can you be more specific about what conditions cause R to automatically load a package when a .RData file is loaded? My experience has actually been the opposite. On October 22, 2020 6:13:11 PM PDT, Henrik Bengtsson wrote: >As Jeff says, it might be that you have a ~/.Rprofile file with >instr

Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Rolf Turner
On Thu, 22 Oct 2020 18:13:11 -0700 Henrik Bengtsson wrote: > As Jeff says, it might be that you have a ~/.Rprofile file with > instructions to load packages when R starts. It could also be that > you have a .RData file, which is saved if you answer yes to: > > > Save workspace image? [y/n/c]:

Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Henrik Bengtsson
As Jeff says, it might be that you have a ~/.Rprofile file with instructions to load packages when R starts. It could also be that you have a .RData file, which is saved if you answer yes to: > Save workspace image? [y/n/c]: y when you quit R. If this file exists, then R loads it and all the o

Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Jeff Newmiller
Have you looked into your .Rprofile file? Loading packages is not something R normally does without your telling it to do so, but many people forget that they have done so. On October 22, 2020 3:47:04 PM PDT, Michael L Friendly wrote: >[env: Windows, R 3.6.6] > >When I start R from the R Gui i

[R] vanilla session in R Gui or RStudio

2020-10-22 Thread Michael L Friendly
[env: Windows, R 3.6.6] When I start R from the R Gui icon or from RStudio, I get a large number of packages loaded via a namespace. Not entirely clear where these come from. As a result, I often run into problems updating packages because something is already loaded. How can start a new gui s