No tidyselect variables were registered
andirey opened this issue ยท 6 comments
I used "sunburstR" package.
But now it starts generate error
rlang::last_error()
message: No tidyselect variables were registered
class: rlang_error
backtrace:
- shiny::runApp()
- shiny:::serviceApp()
- shiny:::flushReact()
- .getReactiveEnvironment()$flush()
- ctx$executeFlushCallbacks()
- base::lapply(...)
- shiny:::FUN(X[[i]], ...)
- shiny:::flushCallback()
- shiny:::run()
- ctx$run(.func)
- env$runWith(self, func)
- shiny:::contextFunc()
- shiny:::
<observer:output$plot_races_sunburst>
(...) - shiny:::func()
- shiny:::orig(name = name, shinysession = self)
- shiny:::
output$plot_races_sunburst
(...) - shiny:::origRenderFunc(...)
- func()
- sunburstR::sunburst(df, count = TRUE, legend = FALSE) app.R:562:4
- sunburstR:::csv_to_hier(data)
- d3r::d3_nest(df, value_cols = "size")
- dplyr::one_of(c(nonnest_cols[length(nonnest_cols)], value_cols))
- tidyselect::peek_vars()
- vars_env$selected %||% abort("No tidyselect variables were registered")
Callrlang::last_trace()
to see the full backtrace
==
version of sunburstR is 2.1.2
How to fix it?
@andirey not sure but my first guess to fix would be to install the newest d3r
with install.packages("d3r")
. Please let me know if this fixes.
Yes. After "d3r" it works. Thanks
Why do we need d3r btw?
@andirey d3r
does the conversion into expected d3
network format https://github.com/timelyportfolio/sunburstR/blob/master/R/converters.R. This is more reliable than the original JavaScript based converter.
OK. Thanks for the advice!
I hope it can be useful for someone else as well.
@andirey thanks for filing the issue. The newest tidyr
required modifications because of api change. I modified d3r
to accept both old and new api format. Also, I have found the data.frame
based network format as illustrated in https://bl.ocks.org/timelyportfolio/e135afab3838dffd82226655245d3feb to be more workable than the original delimited structure.
Going to close. Feel free to reopen.