RStudio
Insert the assignment operator
To insert the assignment operator in RStudio, press Alt + Minus. On a Mac, press Option + Minus instead.
Where it works: Console or source
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | Option- |
| Windows | Desktop app | Alt- |
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.