Libraries after upgrade R? [duplicate] - r

This question already has answers here:
Painless way to install a new version of R?
(12 answers)
Closed 8 years ago.
I just upgrade R to 3.1. I am wondering how to install all the packages I have installed in the previous version. I have 126 packages under R 3.0:
> length(list.files("/Library/Frameworks/R.framework/Versions/3.0/Resources/library"))
[1] 126
How could I transfer these packages under the new R 3.1, is it okay to copy the old library just to the new library path?

Yes, you can just copy the old library to the new library path. Then update your packages using the following code:
update.packages(checkBuilt=TRUE, ask=FALSE)

Related

How can I update R from RStudio? [duplicate]

This question already has answers here:
Update R using RStudio
(10 answers)
Closed 2 years ago.
I need to update R manually, in RStudio. Then I gone to: Tools -> Global options -> General. But I didn't see guidelines for updating.
Just download a new R version from CRAN and install it on your system.
If you are on windows, check the installr package : installr
I don't think that you can update R via point and click from RStudio. Either you download the new version manually from CRAN (it comes with an installer so you don't need to do anything by yourself) or you use the installR package on Windows or the updateR package on Mac: https://github.com/AndreaCirilloAC/updateR

Installing an old version of lme4 package in R [duplicate]

This question already has answers here:
How do I install an R package from the source tarball on windows?
(6 answers)
Closed 4 years ago.
I am struggling to install the 1.1-13 version of lme4 package in R. I went to https://cran.r-project.org/src/contrib/Archive/lme4/ . But I am not understanding the next step after downloading lme4_1.1-13.tar.gz. What should I do next?
Thanks in advance.
You do the follow:
install.packages("path_to_file/lme4_1.1-13.tar.gz", repos = NULL, type="source")
Or in the terminal:
R CMD INSTALL lme4_1.1-13.tar.gz
This second way will not work if the needed system tools for compilation are not present.

Error: package ‘dmGWAS’ was built before R 3.0.0: please re-install it [duplicate]

This question already has answers here:
How do I install an R package from the source tarball on windows?
(6 answers)
Closed 1 year ago.
I downloaded the Windows binary file dmGWAS_2.3.zip clickHere and try to install it by clicking Packages/install package from local zip file. After install, when I try to load 'dmGWAS' I got the error 'Error: package ‘dmGWAS’ was built before R 3.0.0: please re-install it'. I am using win 7 and R 3.1.0.
I searched similar questions but find no solution.
try:
> update.packages(checkBuilt = TRUE, ask = FALSE)
The authors release the newest version dmGWAS_3.0, which is compatible with dmGWAS_2.3. You can use the new version at http://bioinfo.mc.vanderbilt.edu/dmGWAS/

How do I install an older R package? [duplicate]

This question already has answers here:
Installing older version of R package
(8 answers)
Closed 7 years ago.
I am trying to install the R package bigrf using the following command:
install.packages('bigrf')
However, I receive this error:
Warning in install.packages: package 'bigrf' is not available (for R version 3.0.2).
I understand that the package was not built for R version 3.0.2, but is it not possible for me to install it regardless with the understanding that it might not have complete forward compatibility?
The safest thing to do would be to download the last version that the package was built for (link) and run the code on that version.
The easiest way to rebuild a package from source is using R-Studio.
They have a good walkthrough. You will need to use the devtools package as well.

After I upgrade my R version, how can I easily reinstall all the packages that were installed in the old version? [duplicate]

This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Painless way to install a new version of R?
In R, packages are not compatible across upgrades, and must be reinstalled. Is there any way to easily install the same set of packages in the new version as what I had installed in the old version?
Edit: I can't easily access the old version of R, since I upgrade via apt.
I just posted a question with a possible solution:
update.packages(checkBuilt=TRUE, ask=FALSE)
What about that doesn't work for you?

Resources