Monday, 15 July 2013

Label code chunks in regular Rstudio .r script -



Label code chunks in regular Rstudio .r script -

an .rmd document in rstudio easy navigate various code chunks using little drop downwards in bottom left corner of script window.

in regular .r file, functions listed helpful 'f' icon , function name , commented chunks listed helpful '#' icon, (untitled) next them.

what need include in comment "(untitled)" replaced label?

example:

#---------------------------------------------------- # firstlabel - first chunk of code want navigate to. #----------------------------------------------------

add #### @ end of every comment want list

# firstlabel - first chunk of code want navigate to. ####

the nice thing can hide between these comments using drop downwards arrow on left of comment

r rstudio

No comments:

Post a Comment