Prints a human-readable summary of what changed in setup/3_setup_app.R
between each schema version. Call this after upgrading shinyplanr to see
whether your 3_setup_app.R needs manual updates before you re-run it.
Details
The changelog covers all versions from version 2 onwards. If your config
was generated with an older version, look at all entries with a version
number higher than your config's schema_version.
Examples
# See everything that has changed since the initial release
shinyplanr::schema_changelog()
#> shinyplanr config schema changelog (current version: 3)
#> --------------------------------------------------
#>
#> [v2]
#> • Removed the `vars` key from config_list (now derived from Dict$nameVariable at runtime).
#> • Added the `sidebar` key: pre-computed fcreate_vars() / fcreate_check() results.
#> • In 3_setup_app.R, add the `sidebar` block before `config_list <- list(...)` and
#> • include `sidebar = sidebar` in config_list. See the current template for the
#> • exact code: shinyplanr:::.write_setup_app
#>
#> [v3]
#> • Added SilentFeature support: a new Dict type where individual layers are hidden
#> • from the UI but included in the prioritisation with targets set at category level.
#> • In 3_setup_app.R, add slider_varsSilent and slider_varsSilent1/2 to the sidebar block:
#> • scenario$slider_varsSilent = shinyplanr:::fcreate_vars('2scenario_ui_1', Dict, 'silent_sli_',
#> • categoryOut = TRUE, byCategory = TRUE, dataType = 'SilentFeature'),
#> • compare$slider_varsSilent1 = shinyplanr:::fcreate_vars('3compare_ui_1', Dict, 'silent_sli1_',
#> • categoryOut = TRUE, byCategory = TRUE, dataType = 'SilentFeature'),
#> • compare$slider_varsSilent2 = shinyplanr:::fcreate_vars('3compare_ui_1', Dict, 'silent_sli2_',
#> • categoryOut = TRUE, byCategory = TRUE, dataType = 'SilentFeature').
#> • include_silentFeature is now auto-detected from Dict after it is built -- remove any
#> • manual include_silentFeature = TRUE/FALSE from shinyplanr_options and add the
#> • auto-detection line: shinyplanr_options$include_silentFeature <- any(Dict$type == 'SilentFeature')
#>
# See only what changed since your config was at version 2
shinyplanr::schema_changelog(from = 3L)
#> shinyplanr config schema changelog (current version: 3)
#> --------------------------------------------------
#>
#> [v3]
#> • Added SilentFeature support: a new Dict type where individual layers are hidden
#> • from the UI but included in the prioritisation with targets set at category level.
#> • In 3_setup_app.R, add slider_varsSilent and slider_varsSilent1/2 to the sidebar block:
#> • scenario$slider_varsSilent = shinyplanr:::fcreate_vars('2scenario_ui_1', Dict, 'silent_sli_',
#> • categoryOut = TRUE, byCategory = TRUE, dataType = 'SilentFeature'),
#> • compare$slider_varsSilent1 = shinyplanr:::fcreate_vars('3compare_ui_1', Dict, 'silent_sli1_',
#> • categoryOut = TRUE, byCategory = TRUE, dataType = 'SilentFeature'),
#> • compare$slider_varsSilent2 = shinyplanr:::fcreate_vars('3compare_ui_1', Dict, 'silent_sli2_',
#> • categoryOut = TRUE, byCategory = TRUE, dataType = 'SilentFeature').
#> • include_silentFeature is now auto-detected from Dict after it is built -- remove any
#> • manual include_silentFeature = TRUE/FALSE from shinyplanr_options and add the
#> • auto-detection line: shinyplanr_options$include_silentFeature <- any(Dict$type == 'SilentFeature')
#>
