Tutorial 2: Creating an Outline in R
Type your title between two pound symbols and four hyphens (## and ----) like the picture below. As you
finish typing, a small triangle pointing down would appear on the right side of line number.
You can add as many sections as you want. By clicking on the triangle all the lines below the title would
hide and a blue two-sided arrow would be appeared. If you want to expand the lines, simply click on the
double-sided arrow.
To see the document outline, go to right side of the script and click on the part shown below.
You can see that in this R file we have three titles. If you click on any of them, the cursor will jump to the
beginning of that title and you can easily navigate between different titles.