Skip to the main content

RStudio

Show the source of the function at the cursor

F2

Mac Desktop app RStudio IDE

Practice this

Press F2 to show the source of the function at the cursor in RStudio. The keys are the same on a Mac.

Where it works: Console or source

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Desktop app F2
Windows Desktop app F2

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.

Report a correction