on-internet
← Community

Indenting code within .R script without using a function

Stack Overflow ·

I am new to R, and despite searching the forums I have been unable to find a solution to indenting code within both the Source window and Document Outline (Ctrl+Shift+O). An example is shown below. Ideally, I would want the code to function as below when pressing Alt+O This function does seem to be implemented in some fashion as you get the indented code with functions but this is less than ideal. # Section 1 ----------------------------------------------------------- function(x) { # Section 1A =========================================================== } Has anyone found a work-around to impl

Comments

Sign in or sign up to comment and upvote.

No comments yet.