RStudio Cheat Sheet - ShortcutFoo
Maybe your like
HomeDojosAchievementsProfilePricingSign inOpen main menu
RStudio CheatsheetStart learning for freeShortcutFoo uses a Spaced Repetition System that adapts to your training.
Console I
^2Move cursor to console^LClear console⌘LEFTMove cursor to beginning of line⌘RIGHTMove cursor to end of line⌘UPPopup command historyESCInterrupt currently executing command^⇧HChange working directory
Source I
^.Goto file/function^1Move cursor to source editor⌘⇧KCompile⌘⌥IInsert chunk (Sweave and Knitr)⌘⇧RInsert code section⌘↵Run current line / selection⌥↵Run current line / selection (retain cursor position)
Source II
⌘⇧PRe-run previous region⌘⌥RRun current document⌘⌥BRun from beginning of document to current line⌘⌥ERun from current line to end of document⌘⌥FRun the current function definition⌘⌥TRun the current code section⌘⌥PRun previous Sweave / Rmd code
Source III
⌘⌥CRun current Sweave / Rmd chunk⌘⇧OSource a file⌘⇧SSource the current document⌘⇧↵Source the current document (with echo)⌘⌥LFold selected⌥⇧LUnfold selected⌘⌥OFold all⌘⌥⇧OUnfold all
Source IV
⌘⌥⇧GGo to line⌘⌥⇧JJump to^⇧.Switch to tab^F11Previous tab^F12Next tab^⇧F11First tab^⇧F12Last tab
Source V
⌘F9Navigate back⌘F10Navigate forward⌘⌥XExtract function from selection⌘⌥VExtract variable from selection⌘IReindent lines⌘⇧AReformat selection⌘⌥⇧PShow diagnostics
Source VI
^TTranspose letters⌥UPMove lines up⌥DOWNMove lines down⌘⌥UPCopy lines up⌘⌥DOWNCopy lines down^PJump to matching brace / parenthesis^⇧EExpand to matching brace / parenthesis^⌥⇧ESelect to matching brace / parenthesis
Source VII
^⌥UPAdd cursor above current cursor^⌥DOWNAdd cursor below current cursor^⌥⇧UPMove active cursor up^⌥⇧DOWNMove active cursor down⌘FFind and replace⌘GFind next⌘⇧GFind previous⌘EUse selection for find⌘⇧JReplace and find⌘⇧FFind in files
Editing I
⌥LEFTMove to previous word⌥RIGHTMove to next word⌘UPMove to start⌘DOWNMove to end⌘DDelete line⌥⇧LEFTSelect word to left⌥⇧RIGHTSelect word to right
Editing II
⌘⇧LEFTSelect to line start⌘⇧RIGHTSelect to line end⌘⇧UPSelect to start⌘⇧DOWNSelect to end⌥BACKSPACEDelete word left^KDelete to line end^⌥BACKSPACEDelete to line start
Editing III
⇧TABOutdentTABIndent^UYank line up to cursor^KYank line after cursor^YInsert currently yanked text⌥-Insert assignment operator⌘⇧MInsert pipe operatorF1Show help for function at cursorF2Show source code for function at cursor⌘⌥UFind usages for symbol at cursor (c++)
Views I
^1Move focus to source editor^2Move focus to console^3Move focus to help^4Show history^5Show files^6Show plots^7Show packages^8Show environment^9Show git / svn^0Show build⌘F8Sync editor and PDF preview
Build / Debug I
⌘⇧BBuild and reload⌘⇧LLoad all (devtools)⇧F9Toggle breakpointF10Execute next line⇧F4Step into function⇧F6Finish function / loop⇧F5Continue⇧F8Stop debugging
Source Control I
^⌥DDiff active source document^⌥MCommit changesSPACEStage / Unstage (Git)Stage / Unstage and move to next (Git)
Misc I
F7Check spelling⌘⌥F11Previous plot⌘⌥F12Next plot⌘⇧F10Restart R session
Tag » How To Delete Code In R
-
How To "erase" A Wrong Code - General - RStudio Community
-
Clear The Console And The Environment In R Studio - GeeksforGeeks
-
How To Delete A Line? : R/RStudio - Reddit
-
How To Delete Part Of R Studio Console? - Stack Overflow
-
Keyboard Shortcuts To Cut/delete Code Chunks In R Markdown #10147
-
Delete Data Object From Workspace In R (3 Examples) - YouTube
-
Clear R And RStudio Console (2 Examples) | Remove With Shortcut ...
-
Remove Element From List In R (7 Example Codes) | How To Delete ...
-
How To Delete Rows In R? Explained With Examples
-
R: How To Create, Delete, Move, And More With Files
-
Clear All In R - ProgrammingR
-
Posit's RStudio Shortcuts And Tips [Updated 2022] - R Programming
-
Remove Objects From A Specified Environment - RDocumentation
-
How To Remove Value From A Vector In R - Tools