Instructions for installing R and RStudio
To get the most out of this workshop, please bring your own laptop and do the following before the workshop. It should take about 15 minutes (with a fast internet connection) to complete the steps below.
- Create a working directory for the workshop on your computer
- In this working directory, save a text file with the path of the directory.
- On a Mac, you can find out a path by right-clicking on a folder (or file) and pressing the "Option" key on your keyboard. Then, choose "Copy ... as Pathname". The path might be something like:
/Users/johanneskarreth/Documents/Dropbox/POL 452/R workshop
- On Windows, you can find out a path by holding down the Shift key as you right-click the folder (or file), and then choose "Copy As Path". The path might be something like:
C:\Users\jkarreth.URSINUS\Documents\Dropbox\POL 452/R workshop
- On a Mac, you can find out a path by right-clicking on a folder (or file) and pressing the "Option" key on your keyboard. Then, choose "Copy ... as Pathname". The path might be something like:
- Download the most recent version of R from https://www.r-project.org (3.5.1 or higher)
- Go to Download:CRAN (on the top left)
- Then click on https://cloud.r-project.org/
- Now choose "Download R for..." your operating system
- Open the downloaded file (version 3.5.1 or higher) and follow the installation instructions:
R-3.5.1.pkg
for MacR-3.5.1-win.exe
for Windows
- Download the most recent version of RStudio Desktop (1.1.456 or higher) from https://www.rstudio.com/products/rstudio/download/. Scroll down to "Installers for Supported Platforms" and choose the installer for your operating system.
- Open the downloaded file (version 1.1.456 or higher):
RStudio-1.1.456.dmg
for MacRStudio-1.1.456.exe
for Windows- Open RStudio. You should see a screen that looks similar to the image below:
- In the center right (highlighted above), click on the "Packages" tab:
- Click "Install" (highlighted above) and type the following into the text box:
tidyverse rio igraph mapdata rvest blscrapeR viridis visNetwork
-
Download the folder
Data.zip
(click through for Dropbox link; choose "Direct download") and save it in your working directory for this workshop and unzip it. Your working directory should now look similar to the following: