View the slides for this section here.
When people decide to begin using R, it can be confusing to know where to start. Googling “how can I learn R?” will return a lot of results, but it can quickly feel like you’re drinking water from a fire-hose. Like most things, knowing the correct terminology can help you sift through the resources to find what you’re looking for.
We’re going to clear up some of the terms and definitions so the R programming landscape is a little less overwhelming:
Depending on what kind of computer you have, these instructions will be a little different. The two sections below describe how to install R and RStudio on Mac and Windows machines. An alternative to downloading and installing R and RStudio is using RStudio.Cloud, which operates entirely in your browser. You’ll need to sign up for a free RStudio.Cloud account using a Github account (also free!).
These steps cover how to install R and RStudio on a Mac. The technical details on the operating system and machine are listed below,
MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports)
macOS Big Sur
Version: 11.2.3 (20D91)
Model Name: MacBook Pro
Model Identifier: MacBookPro14,2
Graphics: Intel Iris Plus Graphics 650 1536 MB
Processor Name: Dual-Core Intel Core i5
Processor Speed: 3.1 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 4 MB
Hyper-Threading Technology: Enabled
Memory: 16 GB
System Firmware Version: 429.80.1.0.0
SMC Version (system): 2.44f6
Navigate to CRAN, the The Comprehensive R Archive Network.
Click on the Download R for (Mac) OS X.
Download the R package:
Download the R installer package into your Applications folder.
Navigate to RStudio downloads for Macs
Download the RStudio .dmg into your Applications folder.
You’ll need to install Xcode to compile R packages, which you can find in the Mac App Store.
Open the App Store on your local machine and click on the ‘Develop’ tab. Click on the ‘Get’ icon (mine says ‘open’ because I already Xcode installed).
Follow the instructions to install Xcode just like you would any other application on your Mac.
Open your Applications folder and click on the R package installer.
This will open the installer package, click on ‘Continue’ until you’re asked to ‘Agree’
Click ‘Agree’
All the package installer to install R on your machine.
Wait for R to finishing installing…
Click ‘Close’ when the application is installed.
Open your Applications folder and click on the RStudio .dmg installer.
Drag and drop the ‘RStudio.app’ icon into the ‘Applications’ folder.
Wait for the application to finishing copying…
Double-click on the new ‘RStudio.App’ icon.
We’re sure–click ‘Open’
Take a look at the RStudio IDE!
These steps cover how to install R and RStudio on a Windows machine. The technical details on the operating system and machine are listed below.
The steps below outline installing R version 4.1.0 on Windows. The installation steps might look sightly different on your machine. Ask me if you get stuck.
These steps walk you through how to install RStudio on your windows machine.
Download the windows version of RStudio here. You should see the .exe file in your downloads folder (or wherever you downloaded it).
Double click on the .exe file and launch the install Wizard:
This should be your C:\Program Files
folder:
You should see the progress bar running:
Click Finish to exit the installation Wizard:
Check if there is an RStudio icon on your desktop. Double-click the icon to open it. If you don’t see the icon, click on the ‘Start’ button at the bottom left of the screen and search for ‘RStudio’ (then click on the RStudio icon to open it).