Skip to content
Prev 9800 / 15075 Next

How to move existing packages?

For me !(a %in% rownames(installed.packages())) gives a vector of {TRUE,
FALSE}; so, Simon's second approach didn't work. But the following
(mostly) works:

a <- 
rownames(installed.packages("/Library/Frameworks/R.framework/Versions/2.15/
Resources/library"))
to.install <- setdiff(a, rownames(installed.packages()))
install.packages(to.install)


This didn't work for lme4. So, after installing gfortran-4.2.3.pkg from
<http://cran.r-project.org/bin/macosx/tools/gfortran-4.2.3.pkg> (I already
had all the other needed tools under R 2.15, I guess), I ran the following:

to.install <- setdiff(a, rownames(installed.packages())) # Now just "lme4"
install.packages(to.install, type="source")
On 4/9/13 12:41 PM, "Simon Urbanek" <simon.urbanek at r-project.org> wrote: