Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Andrew's top 10 RStudio shortcutsSome useful RStudio shortcuts...

ShortcutWhat it does
Alt + - Insert the assignment operator <- 
Ctrl + Shift + MInsert pipe %>% 
Ctrl + Shift + R Insert section
Ctrl + Alt + I Insert or breaks up RMarkdown code chunk
Ctrl + Alt + B Run all code from beginning of script to cursor
Ctrl + Alt + E Run all code from cursor to end of script
Alt + Up/Down Move selected code up or down
Ctrl + Alt +  click Creates multiple cursors
Ctrl + I Fix line indentations
Ctrl + Shift + A Reformat selected code
Ctrl + Shift + C Comment or uncomment selected code


More resources

...