Luke
Luke

Reputation: 4929

How can I code for subtitles in R Studio?

I am using R Studio, and noticed that there's a little orange # between the code window and the console that lists the subtitle within your code that you're working under. How can I indicate a label for a subtitle? is it

#subtitle#

or

#subtitle

or what? Neither of these seems to do it.

Upvotes: 3

Views: 3100

Answers (1)

GSee
GSee

Reputation: 49810

On a single line, add #, your label, then 4 or more hyphens after your label

# My chunk ----

Alternatively, you can insert a code section with CtrlShiftR or CommandShiftR on Mac

Upvotes: 6

Related Questions