[R] Reset running R session to --vanilla state?

Rainer M Krug Rainer at krugs.de
Thu May 28 13:28:51 CEST 2015

Duncan Murdoch <murdoch.duncan at gmail.com> writes:

> On 28/05/2015 4:52 AM, Rainer M Krug wrote:
>> Hi
>> Is there a way of resetting R to the --vanilla state *without
>> closing and restarting* R, i.e. all packages un-loaded (except the
>> ones loaded automatically in --vanilla), all options reset, dev()
>> closed, environments detached and deleted, ...?
> Not with the standard front-ends.  I would guess you could write your
> own front end that did that, but it would probably be easier to just
> run R in a separate process, and close and restart it.  I think that's
> what RStudio does.

That's what I guessed. I wanted to do this in emacs / ess but then I
have to think about a restart solution in ESS, which should be possible.



> Duncan Murdoch

Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 494 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20150528/b56db27e/attachment.bin>

More information about the R-help mailing list