Tricky package update-installation in R

code
Rstudio
packages
Author

Jakob Koch

Published

January 22, 2023

Package installations

I always try first to update/install packages through the respective pane of Rstudio IDE
Package installing/updating through the Rstudio IDE.

If you encounter thereby issues like:

  • updated package loaded at the moment

  • not able to remove old package version

Then this workflow should help

  1. copy the install.packages() call
  2. close all Rstudio instances
  3. navigate to the R installation folder
  4. run /bin/R.exe The Rscript.exe file is a scriptinterpreter only.
  5. there paste your install.packages() code, and update the packages, this should work smootly now.
  6. Restart Rstudio and have fun with the newly updated packages