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:
- CRAN:
install.packages("packagename")
- Github:
remotes::install_github("user/packagename")
For example, to install the shiny
package, run install.packages("shiny")
:
Jupyter
- From the jupyter notebooks interface, click
New
thenTerminal
. A terminal will open in a new browser tab.
- In the Terminal, run
pip install --user packagename
, replacingpackagename
with the Python package you intend to install. e.g: