View source: R/rEHR_functions.R
connect_database | R Documentation |
Open connection to SQLite database
connect_database(dbname)
dbname |
Name of SQLite database on hard disk (including full file path relative to working directory) |
No return value, called to open a database connection.
## Connect to a database
aurum_extract <- connect_database(file.path(tempdir(), "temp.sqlite"))
## Check connection is open
inherits(aurum_extract, "DBIConnection")
## clean up
RSQLite::dbDisconnect(aurum_extract)
unlink(file.path(tempdir(), "temp.sqlite"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.