rstudio / dygraphs

R interface to dygraphs
http://rstudio.github.io/dygraphs
Other
365 stars 194 forks source link

Error from JSONlite when using dygraphs #210

Open ckatsulis opened 6 years ago

ckatsulis commented 6 years ago

I receive this error when using certain features with dygraphs in R

Input to asJSON(keep_vec_names=TRUE) is a named vector. In a future version of jsonlite, this option will not be supported, and named vectors will be translated into arrays instead of objects. If you want JSON object output, please use a named list instead. See ?toJSON.

Typically the base call of dygraphs works fine, however when I use the "pipe" %>% with %>% dyOptions(drawPoints = T, strokeWidth = 0)

przmv commented 6 years ago

Hello @ckatsulis! Thanks for your report!

Could you please provide a Minimal Working Example (https://www.r-bloggers.com/writing-a-minimal-working-example-mwe-in-r/)?