RSweave Run current chunk


Is there any way to configure RStudio so that the code chunks that are inserted into a RSweave document have the same icons (Modify Chunk Options, Run All Chunks Above, and Run Current Chunk) in the top right corner as the code chunks that get inserted into Rmd documents?

I have been writing Rmd - and occasionally RPres - files and when inserting code chunks into those, they automatically get created with those icons/buttons which I find to be very handy. For Rnw files, the code chunks do not contain the icons.

Code chunk inserted into an Rmd document:

Code chunk inserted into an Rnw document:


Hi @thisisdaryn!

I don't think what you are looking for is currently possible (but I hope someone will correct me if I'm wrong! :sweat_smile:). You can find a collection of support articles on RStudio's support for Sweave here:

If you’d like to submit your suggestion as a feature request, here's your starting point:
RStudio IDE Guide: Writing Good Feature Requests

1 Like

Thanks. Will submit the feature request.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.