is_connected | R Documentation |
Test whether a database is connected
is_connected(conn_name)
not_connected(conn_name)
conn_name |
Character. The name of a connection (run |
Logical, or NULL if conn_name
does not identify exactly 1
connection
library(sqlhelper)
connect(
system.file("examples/sqlhelper_db_conf.yml",
package="sqlhelper")
)
connection_info()
is_connected("simple_sqlite")
is_connected("foo")
DBI::dbDisconnect(live_connection("simple_sqlite"))
is_connected("simple_sqlite")
not_connected("simple_sqlite")
disconnect()
is_connected("simple_sqlite")
not_connected("simple_sqlite")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.