klippy package enhances
HTML documents with copy to clipboard buttons. You only have to paste the following chunk anywhere in your
Obviously, you have to try the clipboard button in the upper left corner of this chunk!
You can select which of the code blocks get a klippy.
First, insert this chunk anywhere in your
Then, add the
klippy class to a code chunk:
If you use other languages than
R in your
Rmd file, you can also add klippies to these code blocks.
For example, if you want to add klippies to
python code blocks, add this chunk anywhere in your
klippy is positionned at the upper-left corner of the code chunks. You can choose another corner with
klippy color is the same as the links in the document. However, you can pick another color:
Tooltip messages can also be adapted:
For supported browsers, see
A klippy is a knitweaR clipboard button.↩︎