| launch_ui | R Documentation |
The launch_ui() function installs and launches the DuckDB UI extension
for an active DuckDB database connection. This allows users to interact
with the database via a web-based graphical interface.
Your connection from create_contoso_duckdb() is returned in the list.
launch_ui(.con)
.con |
A valid |
The function performs the following steps:
Checks that the provided DuckDB connection is valid. If the connection is invalid, it aborts with a descriptive error message.
Installs the ui extension into the connected DuckDB instance.
Calls the start_ui() procedure to launch the DuckDB UI in your browser.
This provides a convenient way to explore and manage DuckDB databases interactively without needing to leave the R environment.
The function is called for its side effects and does not return a value. It launches the DuckDB UI and opens it in your default web browser.
create_contoso_duckdb() for creating example Contoso datasets in DuckDB.
DBI::dbConnect() and DBI::dbDisconnect() for managing DuckDB connections.
duckdb::duckdb() for creating a DuckDB driver instance.
## Not run:
# Connect to DuckDB
db <- create_contoso_duckdb()
# Launch the DuckDB UI
launch_ui(db$con)
# Clean up
DBI::dbDisconnect(db$con, shutdown = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.