Author Topic: R for Windows update does leave old versions on the PC  (Read 160 times)

Offline wokkeltje

  • Newbie
  • *
  • Posts: 27
    • View Profile
R for Windows update does leave old versions on the PC
« on: March 21, 2019, 02:31:55 AM »
This is probably an issue of the software itselve, but on their website they write the following about how to upgrade
file:///C:/Program%20Files/R/R-3.5.3/doc/html/rw-FAQ.html#Can-I-customize-the-installation_003f
---------------
2.8 What’s the best way to upgrade?

That’s a matter of taste. For most people the best thing to do is to uninstall R (see the previous Q), install the new version, copy any installed packages to the library folder in the new installation, run update.packages(checkBuilt=TRUE, ask=FALSE) in the new R and then delete anything left of the old installation. Different versions of R are quite deliberately installed in parallel folders so you can keep old versions around if you wish.

For those with a personal library (folder R\win-library\x.y of your home directory, R\win64-library\x.y on 64-bit builds), you will need to update that too when the minor version of R changes (e.g. from 3.0.2 to 3.1.0). A simple way to do so is to copy (say) R\win-library\3.0 to R\win-library\3.1 before running update.packages(checkBuilt=TRUE, ask=FALSE).
---------------

It would be nice to have a possibility to uninstall previous versions during update.

Offline Justin Chalfant

  • Patch My PC Support
  • Administrator
  • Hero Member
  • *****
  • Posts: 1814
    • View Profile
    • Patch My PC Support
Re: R for Windows update does leave old versions on the PC
« Reply #1 on: March 21, 2019, 07:42:28 AM »
We will have an option where you can add custom commands in the next update. This should help if you need to change the installation behavior.