if (FALSE) {
# Connect to MotherDuck
con <- DBI::dbConnect(duckdb::duckdb(dbdir = tempfile()))
# List available databases
list_databases(con)
# Change to a specific database and schema
cd(con, database_name = "analytics_db", schema_name = "public")
# Disconnect
DBI::dbDisconnect(con)
}
Run the code above in your browser using DataLab