I like that R updates frequently to give me the best new packages, but it does seem to pose a problem for my R scripts on cron schedules.
I noticed that every time ubuntu updater updates my r-base package, when I try to run my scripts, it'll say something like "
there is no library(XML)".
Then I have to go "
update.packages("XML")" to get the new version of that package that is compatible with my new version of R.
I have a lot of packages installed, so I find myself fairly regularly tracking them down and making long commands like "
update.packages(c("XML", "ggplot2", "timeseries"))".
When I forget to do this after an update, all my R cron scripts fail.
Does anyone have a good workflow for automatically checking which packages I have already installed, and updating them when they need to be updated?