How to change text of code_folding button

Reading distill guilds and I'm trying to change the code_folding button in RStudio which says 'Show code' to different text, such as "Code Sample".

It says that you can "pass a character vector to customize the text of the "Show code" button". Not sure what passing a character vector means and where you should pass the vector?

I have never used {distill} before but I think the guide simply means change TRUE to "xxxx"

Example

{r, code_folding= "Fold-it"}
1 + 1

This worked -- did not think to do this. Thanks!

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.