rpkgdown

pkgdown htmlwidget - Examples


I have tried pkgdown for many htmlwidgets but no example work. They all return the same error:

USArrests %>%
  dplyr::mutate(
    State = row.names(.),
    Rape = -Rape
  ) %>%
  e_charts(State) %>%
  e_bar(Murder) %>%
  e_bar(Rape, name = "Sick basterd", x.index = 1) # second y axis
#> Error in yaml.load(readLines(con), error.label = error.label, ...): argument "error.label" is missing, with no default

Solution

  • Sadly htmlwidgets are not supported in pkgdown at the time of writing this, see issues 617 and 343.