[R] How to save a complete image of the current state of R ?

Andreas Buness a.buness at dkfz-heidelberg.de
Mon Oct 25 10:27:59 CEST 2004

Thanks for your reply.

Considering the reproducibility of R this is an important issue.

Regarding my particular problem, i.e. the package build
failure with "R CMD check package" in the examples section,
I do not know how to proceed.  I have tried the following
strategy: direct installation of the package via
"R CMD INSTALL packageDirectory"
and running of the examples after loading the package
or running the examples file which was generated by the
failing "R CMD check" command
-  but the error is not reproducible.

Any ideas how I can track the problem or get interactive
access to the actual state of R during the check procedure ?

Best Regards

Prof Brian Ripley wrote:
> On Fri, 22 Oct 2004, Uwe Ligges wrote:
>>Andreas Buness wrote:
>>>I like to save the complete state of R, i.e. including
>>>all environments, objects/workspaces, loaded packages etc..
>>I think what you are going to do is not available.
> It is impossible.  You have no access to e.g. the internal state of the 
> Box-Muller generator, the objects pointed to by external references, the 
> versions of namespaces, and many other things.
>>You can save the workspace, attach the data and load formerly loaded 
>>packages again, of course.
>>Uwe Ligges
>>>This wish has arisen since I am not able to reproduce
>>>an error which occurs when running R CMD check.
>>>Many thanks for your advice in advance.
>>>Best Regards

More information about the R-help mailing list