I received such an error when, in creating shiny app in R with DataTables packages, I pressed button that should sort columns in the table output. Any idea how to fix this problem? The solution for this problem should be explained here http://datatables.net/manual/tech-notes/7 but I don't know how to translate this to R shiny language and syntax.
Asked
Active
Viewed 2,809 times
2
-
2FWIW you have more than enough rep on this website to know that you should [make your questions reproducible](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)... – nrussell Jan 19 '15 at 18:43
-
did you just upgrade shiny? – Pat Mc Jan 22 '15 at 20:05
-
1This is issue #266 with `DT` on Github. Please take a look at http://stackoverflow.com/a/40086898/4606130 – micstr Oct 17 '16 at 12:53
1 Answers
1
Try converting your table data to data frame, as in:
output$mytable <- renderDataTable({
df <- getGAData(input$site, input$startDate, input$endDate)
as.data.frame(goalConvByHour(df, input$daysSelected))},
options = list(paging = FALSE, searching = FALSE))

Ingvar Petrov
- 23
- 7