Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update all packages for a new R version quickly and easily?

Tags:

r

cran

Suppose I have R version 3.x.x installed, and I upgrade to version 4.x.x, is there any quick/easy way to install all the new versions of the libraries I had installed?

Please assume all the packages are on CRAN

like image 683
stevec Avatar asked Sep 09 '25 17:09

stevec


1 Answers

Following works for me:

update.packages(ask = FALSE, checkBuilt = TRUE)
like image 75
Yu Zhang Avatar answered Sep 12 '25 10:09

Yu Zhang