View source: R/nycflights13-sql.R
nycflights13_create_sqlite | R Documentation |
Create an in-memory SQLite database for testing
nycflights13_create_sqlite(location = ":memory:", ...)
location |
where to store the database |
... |
additional parameters to connect to a database (most are passed on
to |
RSQLiteConnection
if (check_for_pkg("RSQLite", message)) {
con <- nycflights13_create_sqlite()
DBI::dbGetQuery(
con,
"SELECT year, month, day, carrier, flight, tailnum FROM flights LIMIT 10"
)
DBI::dbDisconnect(con)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.