1.4 Keyboard shortcuts

  • Ctrl Enter: Run the current line of code, or a set of selected lines of code (Command Enter on a Mac).
  • Alt - (minus sign): Shortcut for the arrow assignment operator <-
  • Ctrl Shift M: The pipe operator %>% used in the tidyverse (introduced later)
  • Up and down arrows: Use the up and down arrows while in the Console to scroll through past commands.