Search inside
environment
Syntax highlighting based
on your file's extension
Code diagnostics that appear in the margin.
Hover over diagnostic symbols for details.
Tab completion to finish function
names, file paths, arguments, and more.
Multi-language code snippets to
quickly use common blocks of code.
Open in new
window
Save Find and
replace
Compile as
notebook
Run
selected
code
Re-run
previous code
Source with or
w/out Echo or
as a Local Job
Show file
outline
Jump to function in file Change file type
Navigate
backwards/
forwards
A File browser keyed to your working directory.
Click on file or directory name to open.
Path to displayed directory
Create
folder
Delete
file
Rename
file
Change
directory
Displays saved objects by
type with short description
View function
source code
View in data
viewer
Load
workspace
Save
workspace
Import data
with wizard
Clear R
workspace
Display objects
as list or grid
Choose environment to display from
list of parent environments
History of past
commands to
run/copy
Manage
external
databases
Working
Directory
Maximize,
minimize panes
Drag pane
boundaries
Multiple cursors/column selection
with Alt + mouse drag.
R tutorials
Ctrl/Cmd +
to see history
More file
options
RStudio IDE : : CHEATSHEET
Source Editor
RStudio opens plots in a dedicated Plots pane
Navigate
recent plots
Open in
window
Export
plot
Delete
plot
Delete
all plots
RStudio opens documentation in a dedicated Help pane
Home page of
helpful links
Search within
help file
Search for
help file
Viewer pane displays HTML content, such as Shiny
apps, RMarkdown reports, and interactive visualizations
Stop Shiny
app
Publish to shinyapps.io,
rpubs, RSConnect, …
Refresh
Tab Panes
Open Shiny, R Markdown,
knitr, Sweave, LaTeX, .Rd files
and more in Source Pane
RStudio recognizes that files named app.R,
server.R, ui.R, and global.R belong to a shiny app
Run
app
Choose
location to
view app
Publish to
shinyapps.io
or server
Manage
publish
accounts
Documents and Apps
Access markdown guide at
Help > Markdown Quick Reference
See reverse side for more on Visual Editor
Check
spelling
Render
output
Choose
output
format
Configure
render
options
Insert
code
chunk
Jump to
previous
chunk
Jump
to next
chunk
Run
code
Publish
to server
Show file
outline
Set knitr
chunk
options
Run this and
all previous
code chunks
Run this
code chunk Jump to
section
or chunk
Visual
Editor
(reverse
side)
GUI Package manager lists every installed package
Click to load package with
library(). Unclick to detach
package with detach().
Delete
from
library
Install
Packages
Update
Packages
Package
version
installed
Browse
package site
View(<data>) opens spreadsheet like view of data set
Sort by
values
Filter rows by value
or value range
Search
for value
Turn on at Tools > Project Options > Git/SVN
• Added
• Deleted
• Modified
• Renamed • Untracked A
D
M
R
?
Stage
files:
Show file diff to view file differences
Current
branch
Commit
staged files
Push/Pull
to remote
View
History
Open shell to type commands
Version
Control
Package Development
Roxygen guide at Help > Roxygen Quick Reference
See package information in the Build Tab
Create a new package with
File > New Project > New Directory > R Package
Enable roxygen documentation with
Tools > Project Options > Build Tools
Install package
and restart R
Run R CMD
check
Run devtools::load_all()
and reload changes
Customize
package build
options
Run
package
tests
Clear output
and rebuild
Use debug(), browser(), or a breakpoint and execute
your code to open the debugger mode.
Debug Mode
Examine variables
in executing
environment
Click next to line number to
add/remove a breakpoint.
Select function
in traceback to
debug
Highlighted line shows where
execution has paused
Run commands in
environment where
execution has paused
Step through
code one line
at a time
Step into and
out of functions
to run
Resume
execution
Quit debug
mode
Open traceback to examine
the functions that R called
before the error occurred
Launch debugger
mode from origin
of error
View
memory
usage
R Markdown
Build Log
Run scripts in
separate sessions
CC BY SA Posit Software, PBC • info@posit.co • posit.co • Learn more at posit.co/products/open-source/rstudio • HTML cheatsheets at pos.it/cheatsheets • RStudio IDE 2023.06.1+524 • Updated: 2023-07