User Tools

Site Tools


misc:install_r:start

How to install R and RStudio

  • Install R first.
    • Go to the official R website. The latest version of R is: version 4.1.1 (Kick Things) as of this writing.
    • From "Getting Started", click "download R" link.
    • Select one of the CRAN mirror sites. Choose a location close to you or simply choose "0-Cloud".
    • Click "Download R" for your operating system (Linux, Mac or Windows) and follow instructions there.
    • Windows users:
      • Click "Install R for the first time" to download the base distribution.
      • Open the installer. Accept all the default settings during the installation. This will install the base R in your computer.
  • Once you install the base R, I highly recommend to install RStudio as well.
    • Technically, RStudio is an "integrated development environment," which makes your R programming easier.
    • There are different versions of RStudio. Find RStudio Desktop and download the installer for your operating system.
    • Open the installer. Accept all the default settings during the installation.
  • After installing both R and RStudio, open RStudio.
    • In the console of RStudio, you will see the version of R installed on your computer (see below). Make sure that you are using the latest version of R.
R version 4.1.1 (2021-08-10) -- "Kick Things"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
  • From the menu, create a new R script file by following File –> New File –> R Script or simply hit Ctrl + Shift + N. This will open a blank R script window.
  • Begin your first R programming!
misc/install_r/start.txt · Last modified: 2021/08/26 20:54 by koda