R is the programming language and computing engine, while RStudio is an integrated development environment (IDE) that makes working with R much easier.
In this course, we will use RStudio to write and run R code, manage files and projects, view plots, and work with packages.
R is free and open-source software available from the CRAN download page.
Installing R on Windows is straightforward.
Select Download R for Windows, as shown in the following screenshot.
Click on install R for the first time.
Click on Download R-X.X.X for Windows.
Once the download is complete, install R as you would any other software.
For Mac users, the installer differs between Macs with Apple silicon and older Intel-based Macs.
For Linux users, you probably already know the drill, but here it is anyway…
Select Download R for Linux
Select your linux distribution (debian, fedora, redhat, suse, or ubuntu)
Follow the instructions shown on the download page.
After installation, try opening R. If you
see the R console with a >
prompt, type:
> 1 + 1
You should see:
[1] 2
If so, that’s it! Your R installation is working.
Once you have confirmed that R is working, you are ready to install RStudio.
Go to the RStudio Desktop download page.
Select Download RStudio
Under RStudio IDE, select your Platform
Once the download is complete, install the RStudio installer as you would any other software.
Now that RStudio is installed, you can customize its appearance a little!
Try changing the theme (dark mode?), font, or other appearance settings to make RStudio yours … e.g., ☞ “mad scientist” style
Tools → Global Options → Appearance
If you have any trouble with the installation, feel free to contact me at junichi.fujinuma@ut.ee.