自动更新R Packages

其实就一句话,

update.packages(ask = FALSE, dependencies = c('Suggests'))

多说一句,如果碰到某些包下载失败,建议换个镜像(repos)