DRDataRaft/ docs
GitHub ↗

dr_catalog_app()

Start a read-only data catalog

Usage

dr_catalog_app(
  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.

Value

A Shiny app object (when launch = FALSE).

Examples

\dontshow{if (requireNamespace("dataraft.lake", quietly = TRUE) && requireNamespace("duckdb", quietly = TRUE) && requireNamespace("bit64", quietly = TRUE) && requireNamespace("shiny", quietly = TRUE) && requireNamespace("bslib", quietly = TRUE)) withAutoprint(\{ # examplesIf}
root <- tempfile("dataraft-example-")
config <- dataraft.lake::dr_lake_config(
  dataraft.lake::dr_registry_duckdb(file.path(root, "lake.db")),
  dataraft.lake::dr_storage_local(file.path(root, "data")),
  landing = file.path(root, "landing"), backend = "duckdb"
)
lake <- dataraft.lake::dr_connect_lake(config)
app <- dr_catalog_app(lake, launch = FALSE)
class(app)
dataraft.lake::dr_disconnect_lake(lake)
unlink(root, recursive = TRUE)
\dontshow{\}) # examplesIf}
Documentation source snapshot · View source at 2f9432d ↗
Code examples are documented source examples; they are not executed in this website build.

Search documentation

Search functions, packages and guides.