settings
Rstudio settings I strongly suggest for reproducibility:
- Tools - Global Options - General
- OFF: Restore .Rdata into workspace at startup
- Save workspace to .RData on exit: NEVER
- OFF: Restore .Rdata into workspace at startup
For professionals: Use save
and load
to restore the results of long computations, see saveload.
Settings I use for compatibility and ease of use:
- Tools - Global Options - General
- OFF: Restore most recently opened project at startup
- Tools - Global Options - Code - Editing
- ON: Use native pipe operator
- OFF: Auto-indent code after paste - if you have a custom indenting scheme
- Tools - Global Options - Code - Display
- ON: Show margin (Margin column: 80) - avoid horizontal scrolling!
- ON: Highlight R function calls
- Tools - Global Options - Code - Saving
- Line ending conversion: Windows (CR/LF) - compatible across OS platforms
- Default Text Encoding: UTF-8
- Tools - Global Options - Appearance
- Editor font size: 10
- Editor theme: Cobalt
- Tools - Global Options - Sweave
- Weave Rnw files using: knitr - if you work with Rnw files
- Tools - Global Options - Spelling
- OFF: Use real time spell-checking
- Tools - Modify Keyboard Shortcuts
- To set the following and more keyboard shortcuts, see rskey
::setKeyboardBindings()
- Remove
CTRL+Y
from the command “paste last yank” (to mean “redo” as in other programs) - Set Working Directory to Current Document’s Directory:
CTRL + H
- To set the following and more keyboard shortcuts, see rskey