I'm working on an app with a shinyWidgets::downloadBttn
and the download button doesn't seem to be cooperating. Here is a MWE. I am using R 4.0.3 and RStudio Server 1.4.1103.4
ui <- fluidPage(
downloadBttn(
outputId = 'foo',
style = 'bordered',
color = 'primary'
)
)
server <- function(input, output) {
output$foo <- downloadHandler(
filename = function() {
'foo.csv'
},
content = function(con) {
write.csv(mtcars, con)
}
)
}