[R] Saving environment object

Erik Iverson iverson at biostat.wisc.edu
Fri Aug 15 16:02:21 CEST 2008


Of course you said when you load it again.  I just now loaded it, 
without error.

FYI, my sessionInfo(), which I realize is not the latest version.

sessionInfo()
R version 2.7.0 (2008-04-22)
i686-pc-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
  [1] grDevices datasets  grid      tcltk     splines   graphics  utils
  [8] stats     methods   base

other attached packages:
[1] fortunes_1.3-4  debug_1.1.0     mvbutils_1.1.1  erik_0.0-1
[5] reshape_0.8.0   SPLOTS_1.3-50   Hmisc_3.4-3     chron_2.3-21
[9] survival_2.34-1

loaded via a namespace (and not attached):
[1] cluster_1.11.10 lattice_0.17-6  tools_2.7.0

Benjamin Otto wrote:
> Hi,
> 
> When I create an environment object with new.env() and populate it with
> values then how can I save it into an .RData file properly, so it can be
> loaded later on in a new session?
> 
> Saving an environment object with save() or save.image() results in an error
> message when loading again:
> 
> Error: protect(): protection stack overflow
> 
> Regards,
> 
> benjamin
> 
> ======================================
> Benjamin Otto
> University Hospital Hamburg-Eppendorf
> Institute For Clinical Chemistry
> Martinistr. 52
> D-20246 Hamburg
> 
> Tel.: +49 40 42803 1908
> Fax.: +49 40 42803 4971
> ======================================
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list