Is there a way in RStudio to designate a group of lines and lock them? I'm thinking in terms of graphic design, where literally anything (text, image, entire layers, masks, etc.) can be locked in place, and locking part of a document in graphic design has saved me more times than I can count. In graphic design it's sometimes possible to name the locked section (by grouping the parts, then naming the group, then locking it), and that is also helpful. I can see huge upside to the same ability in RStudio, but I can't find anything like this in the app, documentation, nor online help.
Any advice would be appreciated. How can we lock lines (or more) in RStudio?