This package provides a wrapper around bsplus::bs_button()
, which has to goal to provide a download button in HTML outputs from R Markdown without the need to have runtime: shiny
.
Currently, the download buttons functionality (embedded files) is not supported in Internet Explorer.
Please, refer to the Customizing buttons with css vignette for tips on how to customize the buttons.
You can easily produce a download button as follows:
.xlsx
supported)list(mtcars, iris) %>%
download_this(
output_name = "mtcars and iris datasets",
output_extension = ".xlsx",
button_label = "Download datasets as xlsx",
button_type = "warning",
has_icon = TRUE,
icon = "fa fa-save"
)
.xlsx
supported)list('mtcars dataset' = mtcars, 'iris dataset' = iris) %>%
download_this(
output_name = "mtcars and iris datasets",
output_extension = ".xlsx",
button_label = "Download datasets as xlsx",
button_type = "warning",
has_icon = TRUE,
icon = "fa fa-save"
)