[R Course] How to: Install R and Rstudio on Local

R Courses

A beginner guide to install R and Rstudio yourself.

Thierry Warin https://warin.ca/aboutme.html (HEC Montréal and CIRANO (Canada))https://www.hec.ca/en/profs/thierry.warin.html

Nüance-R provides this course to know how to install R and Rstudio on your computer. Check the video tutorial!

Install R

  1. Go to: cran.r-project.org

  2. Click on one of the 3 options presented to you on cran-r website that matches your operating system:

  1. What you do next will depend on your operating system.

Install Rstudio

  1. Go to: https://www.rstudio.com/products/rstudio/download/

  2. Go to the “Installers for Supported Platforms” section at the end of the page and click on the Rstudio right version for your computer.

  3. The download will start. After the downloading is complete, install the application by following the instructions.

  4. Once the installation is complete, open the application as any others.

Install Packages

When you install by yourself R and Rstudio on your computer, you will need some packages to do your analysis.

Many useful R function come in packages, free libraries of code written by R’s active user community. To install an R package, open an R session and type in your console the line of code.

install.packages("<the package's name>")

R will download the package from CRAN, so you’ll need to be connected to the internet. Once you have a package installed, you can make its contents available to use in your current R session by running

library("<the package's name>")

There are thousands of helpful R packages for you to use, but navigating them all can be a challenge. To help you out, we’ve compiled this guide to some of the best. We’ve used each of these, and found them to be outstanding – we’ve even written some of them. But you don’t have to take our word for it, these packages are also some of the top most downloaded R packages.



For attribution, please cite this work as

Warin (2019, July 5). Thierry Warin, PhD: [R Course] How to: Install R and Rstudio on Local. Retrieved from https://warin.ca/posts/rcourse-howto-installrandrstudio/

BibTeX citation

  author = {Warin, Thierry},
  title = {Thierry Warin, PhD: [R Course] How to: Install R and Rstudio on Local},
  url = {https://warin.ca/posts/rcourse-howto-installrandrstudio/},
  year = {2019}