Classifies and inspects the optional packages used by the Shiny dashboard.
The dashboard is launched by run_sae_app and the dependencies
it touches live in Suggests, not Imports, so users who only
use the modelling functions never have to install them.
Value
Invisibly, a named list with components:
critical_missingCharacter vector of critical packages not installed. When non-empty, the app cannot start.
optional_missingCharacter vector of optional packages not installed. When non-empty, the app starts but some panels degrade.
install_cmdA ready-to-paste
install.packages()call covering all missing packages, orNULLwhen none are missing.
Examples
check_shiny_deps()
#>
#> hbsaems Shiny App Dependency Check
#> ====================================
#>
#> CRITICAL (required to launch the app):
#> [OK ] shinydashboard -- Dashboard layout (every UI tab)
#> [OK ] DT -- Data tables (preview, predictions, benchmarking)
#>
#> OPTIONAL (used by individual panels):
#> [OK ] shinyWidgets -- Picker inputs in Data Exploration and Diagnostics tabs (falls back to selectInput)
#> [OK ] readxl -- Reading .xls / .xlsx uploads (falls back to .csv only)
#> [OK ] energy -- Distance correlation in scatter plot (falls back to Pearson / Spearman)
#> [OK ] minerva -- MIC correlation in scatter plot (falls back to Pearson / Spearman)
#> [OK ] sf -- Build spatial weight matrix from shapefile (falls back to manual matrix upload)
#> [OK ] spdep -- Neighbour computation for spatial weights (paired with sf)
#> [OK ] bridgesampling -- Bayes factor in model_compare (LOO and WAIC remain available)
#>
#> All dependencies installed. Ready to launch.
#>