- Learning Jupyter 5
- Dan Toomey
- 130字
- 2025-04-04 16:20:21
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:
- Close down your Notebook (including the server).
- 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
- 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.