clipboardOutput | R Documentation |
Generates outputs that can be written to clipboards with one click
clipboardOutput( outputId = rand_string(), message = "Copy to clipboard", clip_text = "", class = NULL, as_card_tool = FALSE ) renderClipboard( expr, env = parent.frame(), quoted = FALSE, outputArgs = list() )
outputId |
the output id |
message |
tool tip to show when mouse hovers on the element |
clip_text |
the initial text to copy to clipboards |
class |
'HTML' class of the element |
as_card_tool |
whether to make the output as |
expr |
expression to evaluate; the results will replace
|
env |
environment to evaluate |
quoted |
whether |
outputArgs |
used to replace default arguments of |
'HTML' elements that can write to clip-board once users click on them.
clipboardOutput(clip_text = "Hey there")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.