Useful Rstudio shortcuts
replace Cmd (macOS) by Ctrl for PC
- Scripting
- Alt + -: insert <-
- Cmd + Shift + M: insert %>%
- Cmd + Alt + I: insert code chunk
- Alt + ↑ or ↓: move line up / down
- Cmd + Alt + ↑ or ↓: copy line up / down
- Ctrl + Alt + ↑ or ↓: multi-line edition
- Running
- Cmd + Enter: run code (highlighted lines or all pipeline if not)
- Cmd + Shift + P: re-run Previous code
- Cmd + Shift + Enter: run Current chunk
- Cmd + Shift + K: Knit document
- Files
- Cmd + .: find files or functions in a project
- 5 min video presenting the latest additions in RStudio 1.4
- What They Forgot to Teach You About by Jenny Bryan and Jim Hester