Checks whether an R object is a SQLite Connection.
check_sqlite_connection(x, connected = NA, x_name = substitute(x), error = TRUE)
The object to check.
A flag specifying whether x should be connected.
A string of the name of the object.
A flag indicating whether to throw an informative error or immediately generate an informative message if the check fails.
An invisible copy of the original object.
# NOT RUN { conn <- rws_connect() check_sqlite_connection(conn) rws_disconnect(conn) check_sqlite_connection(conn, error = FALSE) check_sqlite_connection(conn, connected = TRUE, error = FALSE) # }
Run the code above in your browser using DataLab