R Studio

Photo of the Titanic

Ain't that a pretty logo?

Learning Objectives

  • Introduction to RStudio
  • Duration: ~5 Minutes

Titanic after nearly colliding with the SS City of New York and Oceanic

Start RStudio


RStudio Icon

Large RStudio Icon

Screenshot #1

First Screenshot of RStudio

Screenshot #2

Second Screenshot of RStudio

2 Ways To Run

REPL Window
Zoomed In Image of RStudio REPL
  • Hit Enter
  • Highly interactive
  • History saved automatically
  • Best for exploration / experimentation
Editor Window
Zoomed In Image of RStudio Code Pane
  • Hit Control+Enter
  • Less interactive
  • History saved when you save the file
  • Best for documented / reproducible work

REPL: Read Eval Print Loop

Interactive programming is EASIER


## Simple addition!
1+1

## Hasn't changed(yet)!
sqrt(9)

## We can pass values to functions and get results
sqrt(1+5+6-3)
    

Photo of Captain Smith Your Turn!


## What is the value of:
## (1+2)*(1+1+1) ?

## Hint: The "#" is the comment character!
    

Other Features Of RStudio

  • Data objects
  • Help information
  • Plots & Graphs
  • Files

Currently, RStudio is the most popular IDE for R although tools like Statet (Eclipse) and ESS (Emacs) are also in the running for most awesome. Microsoft is integrating R into Visual Studio and Visual Code Editor. More competition is a good thing.