Chapter 2 Installing R and R Studio
If you are running your R code in your computer, you need to install both R and RStudio. Alternatively, you can create a free account at http://rstudio.cloud and run your R code in the cloud. Either way, we will be using the same IDE (i.e., RStudio).
What’s an IDE? IDE stands for integrated development environment, and its goal is to facilitate coding by integrating a text editor, a console and other tools into one window.
2.1 Installing R and R studio
- Download and install R from https://cran.r-project.org
- Download and install RStudio from https://rstudio.com/products/rstudio/download/#download
2.2 I already have R and RStudio installed.
- Open RStudio
- Check your R version by entering sessionInfo() on your console.
- The latest release for R was April 24, 2020 (R version 4.0.0, 2020-04-24, Arbor Day). If your R version is older than the most recent version, please follow step 1 in the previous section to update R.
- Check your RStudio version, if your version is older than Version 1.2.5042, please follow step 2 in the previous section to update RStudio.