[R-SIG-Mac] How to move existing packages?

Karsten karo03de at gmail.com
Wed Apr 10 13:18:17 CEST 2013


Am 10.04.2013 um 12:00 schrieb r-sig-mac-request at r-project.org:

> You can either use the GUI (in the Package Installer -> "Select Packages from R 2.15" -> Install) or the command line:
> 
> a=rownames(installed.packages("/Library/Frameworks/R.framework/Versions/2.15/Resources/library"))
> install.packages(!(a %in% rownames(installed.packages())))
> 
> The latter works on any OS.

Possibly

install.packages(a[!(a %in% rownames(installed.packages()))])

works better

Regards
Karsten
karo03de at gmail.com



More information about the R-SIG-Mac mailing list