I recently installed R version 2.14.1. After a session (not my first) in 2.14.1, I saved the 'workspace image'. I then opened earlier R versions, 2.14.0 & 2.12.0, and the only objects listed were from the 2.14.1 session. All the work under those previous versions were gone, to my dismay. This did not happen when I was working in 2.14.0, as 2.12.0 objects were not affected when saving the workspace image in 2.14.0. Are the 2.14.0 & 2.12.0 objects retrievable or permanently deleted? Thanks for any input, Mike [[alternative HTML version deleted]]
On 23/07/12 19:36, Michael Trianni wrote:> I recently installed R version 2.14.1. After a session (not my first) in 2.14.1, I > saved the 'workspace image'. I then opened earlier R versions, 2.14.0 > & 2.12.0, and the only objects listed were from the 2.14.1 session. > All the work under those previous versions were gone, to my dismay. This did not happen when I was working in 2.14.0, as 2.12.0 objects were not affected when saving the workspace image in 2.14.0.This has nothing to do with versions of R. Whenever you start R, any previously saved image of the workspace is loaded (from a file called ".RData"). Your workspace/global environment will then include any objects that were in the workspace when you saved it. If you save the workspace when you exit R, then the previously saved image of the workspace (the ".RData" file) is overwritten. If objects that were in a previously saved image of the workspace are no longer present when you start R, then you must have removed them at some stage before saving the workspace. Either that, or you removed the file .RData from the directory in which you are starting R. That's all there is to it. The objects did not disappear by magic.> Are the 2.14.0 & 2.12.0 objects retrievable or permanently deleted?If you have backups of your file system then a copy of .RData (one that was made when you were using 2.12.0 or 2.14.0) can be restored from the backup and that will have the objects that you are looking for. If you don't have backups, then I am afraid that you are SOL. Those objects are gone for good. cheers, Rolf Turner
The objects from an R session are saved in the RWorking directory of the session. The answer to your question will depend on whether you started the different versions of R using shortcuts located in different folders or the same folder. The objects should not be automatically deleted so I would think that unless you deleted them yourself, you are dealing with a situation where you are not starting the previous version of R with the same working directory as before. Sorry this is only general advice, but there is not enough detail to say more. Rob On 7/23/2012 2:36 AM, Michael Trianni wrote:> I recently installed R version 2.14.1. After a session (not my first) in 2.14.1, I > saved the 'workspace image'. I then opened earlier R versions, 2.14.0 > & 2.12.0, and the only objects listed were from the 2.14.1 session. > All the work under those previous versions were gone, to my dismay. This did not happen when I was working in 2.14.0, as 2.12.0 objects were not affected when saving the workspace image in 2.14.0. > > Are the 2.14.0 & 2.12.0 objects retrievable or permanently deleted? > > Thanks for any input, > > Mike > > [[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.