Extracting web dependencies

box tag won’t work since shiny does not have shinydashboard dependencies

htmltools::findDependencies() that looks for all dependencies attached to a tag.

library(shinydashboard)
dashboard_ui <- dashboardPage(
  dashboardHeader(),
  dashboardSidebar(),
  dashboardBody()
)

library(htmltools)
dashboard_deps <- findDependencies(dashboard_ui)

sapply(dashboard_deps, \(x) paste0(x$name, ": ", x$version))
[1] "jquery: 3.7.1"         "font-awesome: 6.5.2"   "bootstrap: 3.4.1"     
[4] "AdminLTE: 2.0.6"       "shinydashboard: 0.7.3"