Hi all, I just loaded R 2.50. I want this version to bring the objects from the previous version. How do I do that? Thanks David
Petr Klasterecky
2007-Apr-25 05:07 UTC
[R] Keeping data after upgrading R to a new version [was: A very simple question]
2 simple ways: 1) When launching R, set the working directory to that of previous R installation - how to do this is system specific. or 2) Copy the .Rdata file from the previous working directory to the new one. You can check your current working directory by typing getwd() Petr David Kaplan napsal(a):> Hi all, > > I just loaded R 2.50. I want this version to bring the objects from the > previous version. How do I do that? > > Thanks > > David > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >-- Petr Klasterecky Dept. of Probability and Statistics Charles University in Prague Czech Republic
If by "objects" you mean the packages you installed and assuming you are on Windows then there are two batch files movedir.bat and copydir.bat in the batchfiles distribution that will either move them from an older version (they won't be available to the older version any more but its much faster and they won't be taking up space twice) or copy them (they will now be in both versions so you can use them from either but its slower and they will be taking up space twice). See the batchfiles home page: http://code.google.com/p/batchfiles/ which has a link to the download site and a link to the README which you should be sure to read. On 4/25/07, David Kaplan <dkaplan at education.wisc.edu> wrote:> Hi all, > > I just loaded R 2.50. I want this version to bring the objects from the > previous version. How do I do that? > > Thanks > > David > > ______________________________________________ > R-help at stat.math.ethz.ch 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. >