Running Code

  • The keyboard shortcuts
    • Ctrl/Cmd + Enter to run the current R expression in the console. The cursor will move to the next code block.
    • Ctrl/Cmd + Shift + S to run the entire script.
  • Tip: Always start your script with the packages you need, but do not include install.packages() in a script you plan on sharing.