Sometimes GNU R has a problem whereby Hadley Wickham recommends:
I'd recommend re-installing all your packages.
The question is how to do this in the best possible way. I know that install.packages
or update.packages
will upgrade all package versions and overwrite existing versions:
update.packages(checkBuilt = TRUE, ask = FALSE)
When using CRAN packages (nothing special from GitHub or other sources), this naive approach worked for me:
my.packages <- rownames(installed.packages());
install.packages(my.packages);
What can I do if I have installed dev versions from GitHub, for example, or used some local packages that are not shared publicly?
What I am looking for is a way to:
- check which changes to packages result from new installation (upgrades/downgrades);
- install packages again from the same source; and
- back up my old packages folder.
How can I address these requirements?