nycflights13_create_sqlite function

Create an in-memory SQLite database for testing

Create an in-memory SQLite database for testing

nycflights13_create_sqlite(location = ":memory:", ...)

Arguments

  • location: where to store the database
  • ...: additional parameters to connect to a database (most are passed on to nycflights13_create_sql)

Returns

RSQLiteConnection

Examples

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) }
  • Maintainer: Jonathan Keane
  • License: Apache License (>= 2.0)
  • Last published: 2024-04-09