In bash: R -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'
Source: https://community.rstudio.com/t/reinstalling-packages-on-new-version-of…