


However, there were a handful that I needed to install manually. Clever but not necessary as a zypper lock is a string which can match many packages, not just a single package name: A. Heres a some hacky bash voodoo that should search and lock them for you: And you can undo it later with the exact same command replacing al with rl in the final section. update.packages(ask = FALSE)Īlmost all of my packages updated seamlessly using the above. The easiest way to do it is to 'lock' the packages.

That will take a while, depending on the number of packages you have installed. Start the R interpreter and then update all installed packages. Run the following command in your R console: installed.packages () This command will display a list of installed packages. sudo apt-get remove -y 'r-cran-*' Update Packages You can check the list of installed packages in your R environment using the installed.packages () function. It would make sense to get rid of these now and simply installed updated versions into your local library. You will probably have some packages that were previously installed with using APT. Sudo apt-get upgrade Remove System Packages # To update any R libraries installed via APT. # 18.04ĭeb trusty-cran35/ Update and Install sudo apt-get update sudo apt-key adv -keyserver -recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 APT SourcesĮdit /etc/apt/sources.list and add the line appropriate to your distribution of Ubuntu. You may have already done this, in which case you can skip this step. To ensure the integrity of files, add the appropriate public key to your system. The complete instructions for doing the update on Ubuntu are available here. Today I finally got around to updating my R to 3.5 (or, more specifically, 3.5.1).
