Description Usage Arguments Value Examples
The button can self-contain the input data by base64 encoding.
1 2 3 4 5 6 7 8 9 |
input |
Filename of the input. If |
text |
The text for the hyperlink. |
... |
Arguments passed to the |
class |
HTML class(es) given to the anchor element generated by |
align |
Align the button by CSS's |
aside |
Whether to wrap the anchor element by the aside element. |
embed |
A function to embed file(s).
One of |
shiny.tag
class object.
1 2 3 4 5 6 7 8 9 10 11 | set.seed(1L)
input <- tempfile()
writeLines("", input)
download_rmd_button(input)
# Requires zip command
if (interactive()) {
input <- tempdir()
download_rmd_button(input, embed = xfun::embed_dir)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.