lookForDB: Throw an error if trying to connect to a database file that...

View source: R/dbUtil.R

lookForDBR Documentation

Throw an error if trying to connect to a database file that doesn't exist. Avoids creating an 0B database file, which is the default behavior for dbConnect() otherwise.

Description

Throw an error if trying to connect to a database file that doesn't exist. Avoids creating an 0B database file, which is the default behavior for dbConnect() otherwise.

Usage

lookForDB(path, db)

Arguments

path

Directory where the database is stored

db

File name of the database file you're trying to connect to

Value

If the database file doesn't exist, throws an error.


MFEh2o/MFEUtilities documentation built on May 6, 2023, 1:33 p.m.