View source: R/connect_to_db.R
connect_to_db | R Documentation |
This function establishes a connection to an SQLite database file located at the specified path using the DBI and RSQLite packages.
connect_to_db(path_to_db)
path_to_db |
The path to the SQLite database file. |
A database connection object.
# Connect to a SQLite database file in memory
conn <- connect_to_db(":memory:")
# When connecting to a specific file, like the downloaded ACDC-Database
# just use the path to the database
## Not run: conn <- connect_to_db("path/to/database.db")
# Want the most recent version of the database?
# Download it at https://github.com/jstbcs/acdc-database/blob/main/acdc.db
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.