rstudio / shiny

Easy interactive web applications with R
https://shiny.posit.co/
Other
5.38k stars 1.86k forks source link

Problem using Shiny.bindAll() together with htmlWidgets #1214

Open thomasp85 opened 8 years ago

thomasp85 commented 8 years ago

A user created an issue at shinyFiles with a problem getting it to work with rpivotTable - digging into it I found that this was due to shinyFiles calling of bindAll when creating the dialog box. The call stack for the error is:

Error: All fields must be arrays                       htmlwidgets.js:669:19
  window.HTMLWidgets.dataframeToD3()                   htmlwidgets.js:669
  .renderValue()                                       rpivotTable.js:14
  window.HTMLWidgets.widget/shinyBinding.renderValue() htmlwidgets.js:517
  this.onValueChange()                                 shiny.min.js:3
  delegateMethod/delegator[methodName]()               htmlwidgets.js:112
  this.onValueChange()                                 shiny.min.js:4
  this.bindOutput()                                    shiny.min.js:3
  a()                                                  shiny.min.js:3
  f()                                                  shiny.min.js:3
  initShiny/exports.bindAll()                          shiny.min.js:3
  createFileChooser()                                  shinyFiles.js:561
  sF.init/<()                                          shinyFiles.js:1710
  m.event.dispatch()                                   jquery.min.js:4
  m.event.add/r.handle()                               jquery.min.js:4

pivotable depends on the devel version of htmlWidgets so this might be a non-issue with the release..?

timelyportfolio commented 8 years ago

I am now wondering if this might be a conflict with duplicate jQuery.

bborgesr commented 8 years ago

related to #1244