The goal of downloadthis
is to implement download buttons in HTML output from RMarkdown without the need for runtime:shiny
.
You can install the released version of downloadthis
from CRAN with:
You can install the development version of downloadthis
from GitHub with:
This package builds the download button in R Markdown using bsplus, and it was inspired on this post from Yihui Xie.
library(downloadthis)
mtcars %>%
download_this(
output_name = "mtcars data set",
output_extension = ".csv",
button_label = "Download data",
button_type = "warning",
has_icon = TRUE,
icon = "fa fa-save"
)
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.