Last active
January 24, 2023 20:37
-
-
Save daranzolin/8f37d90267539094275bca15410cd51c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "downloadthis reprex" | |
format: html | |
include-after-body: button.html | |
--- | |
# Head1 | |
<br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> <br> | |
::: panel-tabset | |
## tab1 | |
```{r} | |
library(downloadthis) | |
x <- "TEST" | |
mtcars %>% | |
download_this( | |
output_name = paste(x, "mtcars data set"), | |
output_extension = ".csv", | |
button_label = "Download data", | |
button_type = "success", | |
has_icon = TRUE, | |
icon = "fa fa-save", | |
id = "wfc-btn" | |
) | |
``` | |
## tab2 | |
```{r} | |
library(downloadthis) | |
x <- "TEST" | |
mtcars %>% | |
download_this( | |
output_name = paste(x, "mtcars data set"), | |
output_extension = ".csv", | |
button_label = "Download data", | |
button_type = "success", | |
has_icon = TRUE, | |
icon = "fa fa-save", | |
id = "wfc-btn" | |
) | |
``` | |
::: | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment