Luc Clair
University of Winnipeg | ECON/GECON 3201
To run R code and use R Studio, you need to install the following software
| Windows Instructions | Mac Instructions |
|---|---|
|
|
| Windows Instructions | Mac Instructions |
|---|---|
|
|
RStudio is an integrated development environment (IDE) for R
.R scripts to save and re-use codeCtrl+Enter (or Cmd on Mac) to run a line of code
Ctrl+Enter or press the Keeps everything organized
Setwd() errors
Manages multiple analyses cleanly

View(data), where data is your datasethead(), summary(), str()install.packages("package_name") and load it into your session using library("package_name")base and stats packages, which load automatically with every R session
To view the rendered document click the
button and save the file to your desired location
The rendered document shows up under the Viewer tab in the bottom-right pane
