chk_sqlite_conn checks if a SQLite connection.
chk_sqlite_conn
chk_sqlite_conn(x, connected = NA, x_name = NULL)check_sqlite_connection( x, connected = NA, x_name = substitute(x), error = TRUE )
check_sqlite_connection( x, connected = NA, x_name = substitute(x), error = TRUE )
NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.
NULL
The object to check.
A logical scalar specifying whether x should be connected.
A string of the name of object x or NULL.
A flag specifying whether to through an error if the check fails.
check_sqlite_connection(): Check SQLite Connection
check_sqlite_connection()
conn <- rws_connect() chk_sqlite_conn(conn) rws_disconnect(conn) try(chk_sqlite_conn(conn, connected = TRUE))
Run the code above in your browser using DataLab