dr_catalog_pane()
The viewer receives the actual listening URL from Shiny. If no IDE viewer is
available, the system browser opens instead. Launching runs Shiny in the
current R process and blocks that session until the app stops. Keep a supplied
lake connection open for that time; this function neither disconnects it nor
creates a background server. An exported snapshot can be used independently
of a live lake connection.
Usage
dr_catalog_pane(
lake = NULL,
snapshot = NULL,
launch = interactive(),
refresh_seconds = 30,
...
)Arguments
- lake
- Connected lake, or NULL when reading an exported snapshot.
- snapshot
- Path to JSON exported by dr_catalog_export().
- launch
- Start the app; FALSE returns a shiny.appobj for Connect.
- refresh_seconds
- Metadata refresh interval.
- ...
- Additional arguments to
shiny::runApp(), such asportandhost. Thelaunch.browsercallback is managed by this function.
Value
A Shiny app object when
launch = FALSE; otherwise the value
returned when shiny::runApp() stops.
Examples
\dontshow{if (requireNamespace("shiny", quietly = TRUE) && requireNamespace("bslib", quietly = TRUE)) withAutoprint(\{ # examplesIf}
snapshot <- tempfile(fileext = ".json")
writeLines('{"assets":[]}', snapshot)
app <- dr_catalog_pane(snapshot = snapshot, launch = FALSE)
class(app)
unlink(snapshot)
\dontshow{\}) # examplesIf}Documentation source snapshot · View source at 2f9432d ↗
Code examples are documented source examples; they are not executed in this website build.
Code examples are documented source examples; they are not executed in this website build.