I'm writing markdown text (not R code) in an RMarkdown document in the source pane of RStudio and I have the margin set at 80 characters in Global Options > Code > Display. I was looking for a way to make the text I'm writing get automatically soft wrapped at the margin. Just for readability and neatness reasons.
The text wraps at the width of the pane, not at the margin. I would like to keep the pane at its current width (or whatever) and still have control over where the text wraps.
Thanks - addin works. But so does @cderv's solution (misleading name for that function, it doesn't just reflow comments).
EDIT: hmm, not sure now. The reflow comment function seems to lose any markdown syntax highlighting within the paragraph. I'll cross-check with the addin and report back.
WrapRmd closed issue where Mara found the same as me, that the wrapping breaks markdown hyperlinks etc. Will try the experimental version of the add-in and see if that works better.