Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when passing shiny.tags to saveWidget() #310

Open
cpsievert opened this issue Apr 17, 2018 · 0 comments
Open

Error when passing shiny.tags to saveWidget() #310

cpsievert opened this issue Apr 17, 2018 · 0 comments

Comments

@cpsievert
Copy link
Collaborator

When trying to save a collection of widgets (perhaps via crosstalk::bscols(), htmltools::tagList(), etc) this error message could be improved:

library(plotly)
library(leaflet)
library(crosstalk)
library(htmlwidgets)

tags <- tagList(plot_ly(), leaflet())
saveWidget(tags, "index.html")
Error in if (!(package %in% dev_packages())) { : 
  argument is of length zero

In fact, we could even make this work (and throw a warning if selfcontained = TRUE), as I've proposed in #309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant