readwritesqlite (version 0.2.0)

chk_sqlite_conn: Check SQLite Connection

Description

chk_sqlite_conn checks if a SQLite connection.

Usage

chk_sqlite_conn(x, connected = NA, x_name = NULL)

check_sqlite_connection( x, connected = NA, x_name = substitute(x), error = TRUE )

Value

NULL, invisibly. Called for the side effect of throwing an error if the condition is not met.

Arguments

x

The object to check.

connected

A logical scalar specifying whether x should be connected.

x_name

A string of the name of object x or NULL.

error

A flag specifying whether to through an error if the check fails.

Functions

  • check_sqlite_connection(): Check SQLite Connection

Examples

Run this code
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