Install packages in RStudio / Jupyter

It is probable that the package you need is already pre-installed and that you can load it into your R/Python session in the usual way. If that is not the case, below are the steps to install R and Python packages.

RStudio

You can install from CRAN or Github using the Console as follows:

  1. CRAN: install.packages("packagename")
  2. Github: remotes::install_github("user/packagename")

For example, to install the shiny package, run install.packages("shiny"):

Jupyter

  1. From the jupyter notebooks interface, click New then Terminal. A terminal will open in a new browser tab.

  1. In the Terminal, run pip install --user packagename, replacing packagename with the Python package you intend to install. e.g: