rstudio / dygraphs

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

Error in yaml.load..."error.label" is missing, with no default #200

Open MFA-bmayer opened 6 years ago

MFA-bmayer commented 6 years ago

Hello. When I run dygraph() I receive the following error:

Error in yaml.load(readLines(con), error.label = error.label, ...) : argument "error.label" is missing, with no default

sessionInfo() is as follows:

R version 3.4.3 (2017-11-30) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] tis_1.34 dygraphs_1.1.1.4 xts_0.10-1 zoo_1.8-1 DT_0.4 lubridate_1.7.2

loaded via a namespace (and not attached): [1] Rcpp_0.12.15 lattice_0.20-35 digest_0.6.15 withr_2.1.1 grid_3.4.3 R6_2.2.2
[7] jsonlite_1.5 git2r_0.21.0 magrittr_1.5 httr_1.3.1 stringi_1.1.6 curl_3.1
[13] devtools_1.13.5 tools_3.4.3 stringr_1.3.0 htmlwidgets_1.1 yaml_2.1.17 compiler_3.4.3 [19] memoise_1.1.0 htmltools_0.3.6

And here are the details of the dygraph() call:

dygraph(data_xts) %>% dyRangeSelector() %>% dyShading(from = "2016-09-25", to = "2016-10-29") %>% dyShading(from = "2017-04-16", to = "2017-06-03") %>% dyShading(from = "2017-11-26", to = "2018-01-27") %>% dyEvent("2016-09-17", "event_a", labelLoc = "bottom") %>% dyEvent("2016-10-14", "event_b", labelLoc = "bottom") %>% dyEvent("2016-11-04", "event_c", labelLoc = "bottom") %>% dyEvent("2016-11-11", "Veteran's Day", labelLoc = "bottom", color = "blue") %>% dyEvent("2016-12-09", "event_d", labelLoc = "bottom") %>% dyEvent("2017-04-09", "event_e", labelLoc = "bottom") %>% dyEvent("2017-04-19", "event_f", labelLoc = "bottom") %>% dyEvent("2017-04-29", "event_g", labelLoc = "bottom") %>% dyEvent("2017-05-21", "event_h", labelLoc = "bottom") %>% dyEvent("2017-10-09", "Columbus Day", labelLoc = "bottom", color = "blue")

przmv commented 6 years ago

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