RStudio
Run from the start to the current line
In RStudio, Ctrl + Alt + B will run from the start to the current line. On a Mac, press Cmd + Option + B instead.
Where it works: Source editor
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | CmdOptionB |
| Windows | Desktop app | CtrlAltB |
Where this comes from
Keyboard Shortcuts in the RStudio IDE - Posit Support
Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.