Working in RStudio

Jeff Stevens


Review: Mental model of R

Tour of RStudio

Mental model of RStudio

Keyboard shortcuts

Here are some of my favorite things!

Tools > Keyboard Shortcuts Help or Alt/Opt+Shift+K

Function Keyboard shortcut
Run current line Ctrl/Cmd+Enter/Return
Source entire script Ctrl/Cmd+Shift+S
Insert assignment operator Alt/Opt+-
Insert pipe Ctrl/Cmd+Shift+M
Comment lines Ctrl/Cmd+Shift+C


  • Turn off restore workspace
  • Turn off save history
  • Turn on soft wrap
  • Turn on rainbow parentheses
  • Change your theme

Installing packages

Getting help

Online forums

Online portals/books


  • Learn to use keyboard shortcuts

  • You can remap keyboard shortcuts (I’ve remapped Insert assignment operator to Ctrl/Cmd+Shift+,)

  • Restart R often

Let’s explore!

Working in RStudio

Mental model of RStudio