Description Usage Arguments Value Examples
List table names in an SQLite database
1 |
file |
Path to the SQLite database file |
A character vector of table names.
1 2 3 4 5 6 7 8 9 10 11 12 | # Setup ----
library(RSQLite)
database_file <- tempfile()
conn <- dbConnect(SQLite(), dbname = database_file)
dbWriteTable(conn, "mtcars", mtcars[1:5, ])
dbWriteTable(conn, "USArrests", USArrests[1:5, ])
dbDisconnect(conn)
# Example ----
sqliteListTables(database_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.