dbW_setConnection: Registers/connects a SQLite weather database with the package

View source: R/sw_dbW_WeatherDatabase.R

dbW_setConnectionR Documentation

Registers/connects a SQLite weather database with the package

Description

Registers/connects a SQLite weather database with the package

Usage

dbW_setConnection(
  dbFilePath,
  create_if_missing = FALSE,
  check_version = FALSE,
  verbose = FALSE
)

.dbW_setConnection(dbFilePath)

Arguments

dbFilePath

A character string. The file path of the weather database. This will be a file of type sqlite3. In-memory databases are not supported.

create_if_missing

A logical value. If TRUE and file dbFilePath does not exist then create a new database file.

check_version

A logical value. If TRUE then check database version against currently implemented version by the package.

verbose

A logical value.

Value

An invisible logical value indicating success/failure.

Details

.dbW_setConnection() is a bare-bones version of dbW_setConnection(). It doesn't carry out any checks that make sure the database works correctly.


Burke-Lauenroth-Lab/Rsoilwat documentation built on Dec. 9, 2023, 12:41 a.m.