format_library_app: Launch Shiny Browser for Format Library

View source: R/format_library_app.R

format_library_appR Documentation

Launch Shiny Browser for Format Library

Description

Opens an interactive Shiny app for browsing and managing objects currently registered in the global ksformat format library.

Usage

format_library_app(port = getOption("shiny.port"), launch.browser = TRUE)

Arguments

port

Integer or NULL. Port passed to shiny::runApp(). Default: getOption("shiny.port").

launch.browser

Logical. Passed to shiny::runApp(). Default: TRUE.

Details

The app displays both ks_format (VALUE) and ks_invalue (INVALUE) objects, supports filtering and name search, shows object details with a formatted mapping table, and provides management actions to remove one object, clear the full library, or quit the app.

Value

Invisibly returns NULL.

Examples

## Not run: 
if (interactive() && requireNamespace("shiny", quietly = TRUE)) {
  fnew("M" = "Male", "F" = "Female", name = "sex")
  finput("Male" = 1, "Female" = 2, name = "sex_inv")
  format_library_app()
}

## End(Not run)

ksformat documentation built on May 21, 2026, 9:07 a.m.