Rstudio Cheat Sheet: Console
Rstudio Cheat Sheet: Console
Rstudio Cheat Sheet: Console
Ctrl + Alt + W Close active document (Chrome Ctrl + F10 Navigate forward
only) Ctrl + Alt + X Extract function from selection
Ctrl + Shift + W Close all open documents Ctrl + Alt + V Extract variable from selection
Ctrl + Shift + K Preview HTML (Markdown and Ctrl + I Reindent lines
HTML)
Ctrl + Shift + C Comment/uncomment current
Ctrl + Shift + K Knit Document (knitr) line/selection
Ctrl + Shift + K Compile Notebook Ctrl + Shift + / Reflow Comment
Ctrl + Shift + K Compile PDF (TeX and Sweave) Ctrl + Shift + A Reformat Selection
Ctrl + Alt + I Insert chunk (Sweave and Knitr) Ctrl + Shift + Alt + Show Diagnostics
Ctrl + Shift + R Insert code section P
Ctrl + Enter Run current line/selection Alt + Up arrow / Move Lines Up/Down
Down arrow
Alt + Enter Run current line/selection (retain
cursor position) Ctrl + Shift + Copy Lines Up/Down
Home or Ctrl +
Ctrl + Shift + P Re-run previous region
Shift + End or
Ctrl + Alt + R Run current document Shift + Alt + Up
Ctrl + Alt + B Run from document beginning to arrow / Down
current line arrow
Ctrl + Alt + E Run from current line to document Ctrl + P Jump to Matching Brace/Paren
Page 2 of 3
Ctrl + F3 Use Selection for Find Ctrl + Shift + M Insert pipe operator
Ctrl + Shift + J Replace and Find F1 Show help for function at cursor
Build
Ctrl + Shift + B Build and Reload
Ctrl + Shift + L Load All (devtools)
Ctrl + Shift + T Test Package (Desktop)
Ctrl + Alt + F7 Test Package (Web)
Ctrl + Shift + E Check Package
Ctrl + Shift + D Document Package
Debug
Shift + F9 Toggle Breakpoint
F10 Execute Next Line
Shift + F4 Step Into Function
Shift + F6 Finish Function/Loop
Shift + F5 Continue
Shift + F8 Stop Debugging
Plots
Ctrl + Alt + F11 Previous plot
Ctrl + Alt + F12 Next plot
Git / SVN
Ctrl + Alt + D Diff active source document
Ctrl + Alt + M Commit changes
Ctrl + Up Scroll diff view
arrow/Down arrow
Space Stage/Unstage (Git)
Enter Stage/Unstage and move to next
(Git)
Session
Ctrl + Q Quit Session (desktop only)
Ctrl + Shift + F10 Restart R Session