Skip to content
Prev 386064 / 398513 Next

vanilla session in R Gui or RStudio

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:
when you quit R.   If this file exists, then R loads it and all the
objects you had when you saved it. If there are objects associated
with packages, then that will cause those packages to be loaded when R
starts.  To avoid this, you need to move or delete the .RData file.

You can use:
to get detailed information on what happens when R starts, e.g. if you
have a .Rprofile file and an .RData file.  That might help you to
track down what's going on.  The 'startup' package is on CRAN.

I don't know of an easy way to restart RGui or RStudio Console in
vanilla mode, similarly how you can start R at the terminal with 'R
--vanilla'.

/Henrik
On Thu, Oct 22, 2020 at 4:14 PM Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote: