r shiny datatables button option not working.
r shiny datatables button option not working.
ndsu.bison.2178
Posts: 1Questions: 1Answers: 0
Here's my code below
library(shiny)
library(DT)
library(jsonlite)
shinyApp(
ui = fluidPage(DT::dataTableOutput('tbl')),
server = function(input, output) {
output$tbl = DT::renderDataTable(
iris, extensions = 'Buttons', options = list(
dom = 'Bfrtip',
buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
)
)
}
)
I am getting an error,
Error in FUN: The extension buttonsdoes not exist
This discussion has been closed.
Answers
Could you link to the page showing the issue please? I'm afraid I know nothing whatsoever about Shiny, so I can't help with that aspect, but I can take a look at the Javascript.
Allan