Message-ID: <20201023153305.58178400@rolf-Latitude-E7470>
Date: 2020-10-23T02:33:05Z
From: Rolf Turner
Subject: vanilla session in R Gui or RStudio
In-Reply-To: <CAFDcVCTVzUP1b5xAj2MF88iPR3icdX+2y6BvS4h3Uy_sUFE5+w@mail.gmail.com>
On Thu, 22 Oct 2020 18:13:11 -0700
Henrik Bengtsson <henrik.bengtsson at gmail.com> 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]: y
>
> 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.
<SNIP>
I don't believe that the forgoing is *exactly* correct. Perhaps it
depends on what is meant by "objects associated with packages".
I have vague recollections that funny things can happen if objects
in the saved .RData file have complicated environments, but I can't
remember details.
cheers,
Rolf Turner
--
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276