Skip to content

Two R sessions?

1 message · David Brahm

#
Paul Y. Peng <ypeng at math.mun.ca> wrote:
In both S+ and R, I treat objects in the workspace (pos=1) as disposable, and
objects in attached databases (pos>1) as permanent.  I wrote the R package
"g.data" to store these permanent objects in separate files as S+ does:
  <http://cran.r-project.org/src/contrib/g.data_1.2.tar.gz>

"g.data" only loads the objects you actually use, so you don't have to read a
huge .RData file if you only want a small subset of the data.  Give it a try!
This strikes me as dangerous, especially since I have so many "x" and "y"
variables all over.  Multiple sessions in R are much nicer, since I never store
my workspace and so there is never any interference.  No need to worry about
what working directory I started R up in.