Does anyone have an idea how I would go about saving a datatable (DT::renderDataTable) output from shiny as a .png? I.e., I want to create a button, similar to this button?
E.g., could anyone define a button to save this table as a png:
---
output: html_document
runtime: shiny
---
```{r setup, echo=FALSE}
library(DT)
DT::renderDataTable({
datatable(iris) %>% formatStyle(
'Sepal.Width',
backgroundColor = styleInterval(3.4, c('gray', 'yellow'))
)
})
```