ficonsulting / RInno

How to install local shiny apps
https://ficonsulting.github.io/RInno/
Other
308 stars 66 forks source link

DT package extension "Buttons" partially not working with Electron UI #105

Open Tebatu opened 5 years ago

Tebatu commented 5 years ago

In the minimal example below, using the new Electron UI the button copy works, however, the buttons print, csv, excel, pdfdo not, compared to full functionality in IE, Firefox, and Chrome. Admittedly, the buttons csv, excel, and pdfdo not work in RStudio browser as well, so it is better to start the app in chrome or firefox to test their functionality.

library(shiny)
library(DT)
shinyApp(
  ui = fluidPage(DTOutput('tbl')),
  server = function(input, output) {
    output$tbl = renderDT(
      datatable(
  iris, extensions = 'Buttons', options = list(
    dom = 'Bfrtip',
    buttons = c('copy', 'csv', 'excel', 'pdf', 'print')
  )
)
    )
  }
)
Tebatu commented 5 years ago

Today I discovered that the exported csv and pdf files were in the default download folder of my windows 10. So, that means that the current Electron UI knows to interpret the Buttons plugin, but does not provide notifications/option to change download folder.