Overall RStudio tips
This post includes some overall tips for R/RStudio that are simple yet very helpful.
Code
- To run a line of code (and its associated connected lines):
- on mac:
command + return
- on windows:
Ctrl + return
- on mac:
- To fix code indentation:
- on mac:
command + ato select all, thencommand + i - on windows:
Ctrl + ato select all, thenCtrl + i
- on mac:
RStudio Projects
To go to project main folder, click on the blue
Ricon in theFilestab.To open a folder on your computer file explorer, click on the
Moreicon next to an engine in theFilestab, and select “Show Folder in New Window”.To show chunk names on the table of contents, go to
Tools > Global Options > R markdown > Show in document outline > Sections and Named Chunks