I am trying to make my life easier by adding sections in my code by adding comments but I have some issue while doing that. What I am trying to do it for eg I have a section called output tables which has different sections in it . For eg
You can't have nested folding in an R script (You can in RMarkdown, so consider that as an alternative). So if you wan to use an R script, you should allow the top-level label to be a section, and everything in that section to simply be a comment. For example: