Adding R packages to Jupyter

The standard installation for R under Jupyter has many packages that are commonly used in R programming. However, if you do need to add another package, a small number of steps need to be followed:

  1. Close down your Notebook (including the server).
  2. In the command-line window, type the following:
R install.packages("name of the R package you want to add") 
quit()
# answer Yes to save
  1. Restart your Notebook and the package should be available in your R script, for example, library (name of the R package you want to add).
Note that you may still have problems in R where the core version of R that you have installed is out of date, so you will need to upgrade it to use a particular library.