Is there a way to save EVERYTHING in R? Hi all, Could you please shed some lights on me about this? I am trying to see if there is a way to save EVERYTHING in R to a file, something like "save.image"... But "save.image" doesn't save environment variables such as those properties that are obtained using "Sys.getenv()" function... So is there a way to save EVERYTHING? Thanks a lot! [[alternative HTML version deleted]]
On 22.05.2012 19:50, Michael wrote:> Is there a way to save EVERYTHING in R? > > Hi all, > > Could you please shed some lights on me about this? > > I am trying to see if there is a way to save EVERYTHING in R to a file, > something like "save.image"... > > But "save.image" doesn't save environment variables such as those > properties that are obtained using "Sys.getenv()" function... > > So is there a way to save EVERYTHING?Well, the answer is yes, but not as you expect: If you have a virtual machine running only accessing a local filesystem, you can create a snapshot. So, for other practical purposes and in the sense but not wording of you question: No, environment variables are part of the OS (or the shell). If you want to save EVERYTHING this way, you'd need an image of both, the RAM of you machine as well as the current state of all filesystems etc. Best, Uwe Ligges> > Thanks a lot! > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
Hi Michael, check ?save Regards, Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fresh water system, and public health, what have the Romans ever done for us? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~>________________________________ > From: Michael <comtech.usa@gmail.com> >To: r-help <R-help@stat.math.ethz.ch> >Sent: Tuesday, May 22, 2012 7:50 PM >Subject: [R] Is there a way to save EVERYTHING in R? > >Is there a way to save EVERYTHING in R? > >Hi all, > >Could you please shed some lights on me about this? > >I am trying to see if there is a way to save EVERYTHING in R to a file, >something like "save.image"... > >But "save.image" doesn't save environment variables such as those >properties that are obtained using "Sys.getenv()" function... > >So is there a way to save EVERYTHING? > >Thanks a lot! > > [[alternative HTML version deleted]] > >______________________________________________ >R-help@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. > > >[[alternative HTML version deleted]]
No. Write a script that reconstructs the working environment. Some differences may remain due to incompleteness of your script. The rest may be due to differences in the hardware or software environment. Such differences can only be minimized by choosing stable numerical algorithms or avoiding installation-specific features, and serve as indicators of how reproducible your work is. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. Michael <comtech.usa at gmail.com> wrote:>Is there a way to save EVERYTHING in R? > >Hi all, > >Could you please shed some lights on me about this? > >I am trying to see if there is a way to save EVERYTHING in R to a file, >something like "save.image"... > >But "save.image" doesn't save environment variables such as those >properties that are obtained using "Sys.getenv()" function... > >So is there a way to save EVERYTHING? > >Thanks a lot! > > [[alternative HTML version deleted]] > >______________________________________________ >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.
Apparently Analagous Threads
- Rodbc quesion: how to reliably determine the data type?
- RStudio: copied line is always not the same as the line that I highlighted
- free memory in large list?
- How do I modify sytem shell environment from within R?
- Is there an easier way to iterate over multiple data frames in R?