문제

I was using R version 3.0 and on 2014-04-10 it got updated to the latest version 3.1.0 (Spring Dance). I was working on a package GenometriCorr and all my analyses was on version 3.0. Now if I open my .RData on the new version, it does not show a lot of objects because they were associated with the path of version 3.0.

I installed this package on version 3.1 but I have to re-run all my analyses again because the path has changed. And re-running the R code again is really not that easy. I have two folders in ~/R/x86_64-pc-linux-gnu-library/3.0 & ~/R/x86_64-pc-linux-gnu-library/3.1.

Can I use the old version of R again?

도움이 되었습니까?

해결책

Try loading the old workspace into your new version of R, with

> load("~/R/x86_64-pc-linux-gnu-library/3.0/.RData")

or whatever the filename is.

By the way, good practice is to not save your entire workspace by default to the ".RData" file, but to save just the parts you need to a file you name. See ?save.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top