rstudio / r2d3

R Interface to D3 Visualizations
https://rstudio.github.io/r2d3
Other
517 stars 102 forks source link

Error adding multiple dependencies #80

Closed ChrisWoodsSays closed 4 years ago

ChrisWoodsSays commented 4 years ago

When I add multiple dependences, I get the error below. Can I check I am adding them in the correct way (in a list and with full URLs)? See here for more info.

r2d3(data = station_readings_simple, script = "bbmapchartr2d3.js",
     dependencies = list("https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js",
                     "https://d19vzq90twjlae.cloudfront.net/leaflet-0.7/leaflet.js",
                     "https://d3js.org/d3.v4.js",
                     "https://cdn.jsdelivr.net/gh/holtzy/D3-graph-gallery@master/LIB/d3-scale-radial.js",
                     "https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.7.1/d3-tip.min.js",
                     "https://d19vzq90twjlae.cloudfront.net/leaflet-0.7/leaflet.js"))
Uncaught TypeError: data.charCodeAt is not a function
    at simpleHash (127.0.0.1/:1109)
    at R2D3.self.addScript (127.0.0.1/:1120)
    at R2D3.self.widgetRender (127.0.0.1/:1271)
    at Object.renderValue (127.0.0.1/:1844)
    at Object.renderValue (127.0.0.1/:961)
    at 127.0.0.1/:728
    at Array.forEach (<anonymous>)
    at forEach (127.0.0.1/:130)
    at 127.0.0.1/:651
    at Array.forEach (<anonymous>)
javierluraschi commented 4 years ago

See https://stackoverflow.com/questions/62100951/functions-not-recognised-when-using-r2d3, I believe we can close this.