Skip to content

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

Description

@cpsievert

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions