0

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?

David Z
  • 6,641
  • 11
  • 50
  • 101

1 Answers1

1

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)
user3569035
  • 236
  • 1
  • 2