Skip to content
Prev 43006 / 398506 Next

Changing workspace from within an R session

You might consider using emacs and ess where you can work on a text file
(code) as a file, loading it in as needed while running more than one
instance of R within emacs.  You can then code and debug your code in one R
session (where you have your little objects) and jump over to your big
R-session when you want, loading your code there (but it remains a text file
in emacs), try it, go back to code, reload in small R-session, etc.  The
process is fairly straightforward.  (This assumes that your "data" objects
do not need to be communicated between sessions, only code.)

Sean
----- Original Message -----
From: "Prof Brian Ripley" <ripley at stats.ox.ac.uk>
To: <gerald.jean at dgag.ca>
Cc: <r-help at stat.math.ethz.ch>
Sent: Tuesday, January 20, 2004 12:12 PM
Subject: Re: [R] Changing workspace from within an R session


Attaching at position 1 does not work in R, as you have found.  That is in
?attach, and in the FAQ.

As the FAQ says, using save()d objects (read-only) can do quite a lot of
this.  You could also save the workspace, clear it, and load another saved
image ... but it is probably easier to restart R.
On Tue, 20 Jan 2004 gerald.jean at dgag.ca wrote:

            
R
I
this
on
data.frame
happy
already
http://www.R-project.org/posting-guide.html
--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html