Description Usage Arguments Value
Save tracker object to file and render link or button for user download
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | make_download(
tracker,
save_file,
download_file,
ext = "png",
link_text = "download",
type = c("link", "button"),
height = 13,
height_units = c("cm", "mm", "in"),
button_style = htmltools::css(background.color = "DodgerBlue", border = "none", color
= "white", padding = "12px 30px", cursor = "pointer", font.size = "16px", width =
"150px"),
date = format(Sys.time(), "%Y%m%d-%H%M%S"),
render = TRUE,
stenograph = FALSE
)
|
tracker |
tracker object to be saved |
save_file |
character vector, where length > 1, path is generated using file.path |
download_file |
character vector, where length > 1, path is generated using file.path |
ext |
character device type passed to ggsave |
link_text |
character text to appear on the page |
type |
character must be one of "link" or "button". |
height |
integer height value passed to ggsave |
height_units |
character units value passed to ggsave |
button_style |
css object generated by css or a css character |
render |
Boolean, render in-place or save for later |
stenograph |
use lsb_encode to enbed content within the png output. |
stenograph_text |
character text or R object to encode using lsb_encode, must be less than 2^16 bytes |
html of the link object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.