Description Usage Arguments Value Examples
Check if a table exists in the database
1 |
table |
Name of the table to check for existence |
file |
Database to query |
A logical value that indicates whether the table exists in the database.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # Example data ----
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 ----
sqliteTableExists("status_summary", database_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.