rstudio / shinyuieditor

A GUI for laying out a Shiny application that generates clean and human-readable UI code
https://rstudio.github.io/shinyuieditor/
MIT License
216 stars 29 forks source link

Add dependency check for template apps #124

Open nstrayer opened 1 year ago

nstrayer commented 1 year ago

Some of the template apps use packages that are not explicit dependencies of shinyuieditor and if those apps are chosen then the user gets a confusing crash.

There are three possible solutions i can think of:

  1. Add library checks to the templates themselves (kindof ugly and weighs down the template code)
  2. Add check for the libraries before generating template. (Not totally sure where in the user-flow this would go)
  3. Adding all packages used as strict dependencies of shinyuieditor. This is heavy handed but the safest...