chk_sqlite_conn: Check SQLite Connection

View source: R/chk.R

chk_sqlite_connR Documentation

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
)

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.

Value

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

Functions

  • check_sqlite_connection(): Check SQLite Connection

Examples

conn <- rws_connect()
chk_sqlite_conn(conn)
rws_disconnect(conn)
try(chk_sqlite_conn(conn, connected = TRUE))

poissonconsulting/readwritesqlite documentation built on Oct. 17, 2022, 7:20 p.m.