easydb_disconnect | R Documentation |
Simple wrapper around [DBI::dbDisconnect()]
easydb_disconnect(connection)
connection |
coneection generated by [easydb_connect] |
Invisibly returns TRUE
if(interactive()) { # Choose config file path # Do NOT use tempfile in practice. # Instead, choose a fixed location such as '~/.easydb' config <- tempfile('.example_config') # Initialise config file easydb_init(config) # Connect to SQLite database path_to_db <- system.file(package = 'easydb', 'testdbs/mtcars.sqlite') con <- easydb_connect(dbname = path_to_db, config_file = config) # Disconnect from database when finished easydb_disconnect(con) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.