Using Things about R and R Studio

This page introduces some small but useful things about R and R Studio

Insert a Section in a R File

Insert a section using shortcut

The shortcut for inserting a section

CTRL + SHIFT + R

Inside the pop-up window, you can type your desired section heading name This method is preferred because R Studio will automatically fill the rest of the lines with dashes

# Insert a section using shortcut ----------------------------------------- 

Insert a section manually

At least 4 dashes behind a comment is recognized as an indicator for a section

# Insert a section manually ----

R Studio Shortcuts