Skip to content

Installing R

Download and install R

First, you'll want to install R – go here and download the installer.

Install RStudio

A lot of people use RStudio to do their development with R. You can download RStudio here.

Using R with Jupyter

There are a few different ways to use Jupyter notebooks with R, read the full walkthrough here.

Installing packages for data analysis

If you haven't opened up RStudio or Jupyter yet, you can install packages right from the command line:

R -e 'install.packages(c("tidyverse", "ggplot2", "plotly", "leaflet", "shiny", "rmarkdown", "devtools", "IRkernel"), repos="http://cran.us.r-project.org")'

Although I guess if you are in RStudio or Jupyter, you can just run the following:

install.packages(c("tidyverse", "ggplot2", "plotly", "leaflet", "shiny", "rmarkdown", "devtools", "IRkernel"), repos="http://cran.us.r-project.org")