powered by
Validates if you are successfully connected to motherduck database and will return either a logical value or print a message
validate_md_connection_status(.con, return_type = "msg")
logical value or warning message
A valid DBI connection (DuckDB / MotherDuck).
DBI
return message or logical value of connection status
connect_to_motherduck()
if (FALSE) { con <- DBI::dbConnect(duckdb::duckdb()) validate_md_connection_status(con) }
Run the code above in your browser using DataLab