Skip to content

Reset running R session to --vanilla state?

3 messages · Duncan Murdoch, Rainer M Krug

#
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, ...?

,----
| > Version
|                _                           
| platform       x86_64-apple-darwin14.3.0   
| arch           x86_64                      
| os             darwin14.3.0                
| system         x86_64, darwin14.3.0        
| status                                     
| major          3                           
| minor          2.0                         
| year           2015                        
| month          04                          
| day            16                          
| svn rev        68180                       
| language       R                           
| version.string R version 3.2.0 (2015-04-16)
| nickname       Full of Ingredients         
`----

Thanks,

Rainer
#
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 28/05/2015 4:52 AM, Rainer M Krug wrote:
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.

Duncan Murdoch

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJVZvDjAAoJEHE2Kz23YMZyb90IAJnJSNKSCLL4ANaUOMkYcwcV
5Lxoxqxq9lzn+wTtPgTlT9TqbxlO8sxRf/DJB5ewF3+KJPQ61Ln9SGkwgxKFtK5Q
U5Ap1ZCox5RRIVZPDi0JAjpU+2T0MhdsbjQnCfpz6zHflFRe1pRXi+X5DWs7fX+L
a2K3TRxtlNBgOZUpW2n931TxvkFWL0FaFIGKoMnEFabVlEbkYoBHAI4dAJEVlkDl
SWPCZYvi5UlJY5dpgbOGhLrkM3lWcHqwgfbe80h8i8eIfo13pQTRz4P+PjvITcSM
xJCv55mifueiznpNjY7OW/HMOpb9T4a1PQZmTcRswI3uZVUB1YwBBtVcy74VetQ=
=ehx9
-----END PGP SIGNATURE-----
#
Duncan Murdoch <murdoch.duncan at gmail.com> writes:
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.

Thanks,

Rainer