Question
Automatically update packages installed from R-forge
I recently installed R-2.12.0 from R-2.11.1 and I've updated all CRAN packages via:
update.packages(checkBuilt=TRUE, ask=FALSE)
Now I want to update all the packages I have installed from R-forge, but only if they're not available on CRAN. In other words, I cannot simply run:
update.packages(checkBuilt=TRUE, ask=FALSE, repos="http://r-forge.r-project.org")
because it would install the R-forge version of the survival
package over the version that came with R-2.12.0.
I could probably use some combination of the information from old.packages
and packageStatus
to determine which packages exist only on R-forge, but I wanted to ask if there was an easier way before building a custom solution.
45 21108
45