rio.db-package: A Database Extension for rio

Description Examples

Description

This package uses the extension mechanism of the rio package to enable import from and export to SQLite databases. The only functions to know are import and export.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if (require("rio")) {
  require("datasets")

  # export to a SQLite database
  export(mtcars, "example.sqlite", table = "mtcars")

  # import from a SQLite database
  import("example.sqlite", table = "mtcars")
  
  unlink("example.sqlite")
}

leeper/rio.db documentation built on Oct. 6, 2019, 7:06 a.m.