ddbs_install | R Documentation |
Checks if a spatial extension is available, and installs it in a DuckDB database
ddbs_install(conn, upgrade = FALSE)
conn |
a connection object to a DuckDB database |
upgrade |
if TRUE, it upgrades the DuckDB extension to the latest version |
TRUE (invisibly) for successful installation
## load packages
library(duckdb)
library(duckspatial)
## connect to in memory database
conn <- dbConnect(duckdb::duckdb())
## install the spatial exntesion
ddbs_install(conn)
## disconnect from db
dbDisconnect(conn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.