Working in RStudio

Jeff Stevens

2023-01-25

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

Options

  • 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

Tips

  • 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