setup_dbWork: Setup or connect to SQLite-database 'dbWork' to manage runs...

Description Usage Arguments Value

View source: R/WorkDatabase.R

Description

dbWork tracks completion of each runID with table work, i.e., an entire call to do_OneSite. If your project requires a finer granularity of output management, then set the use_granular_control in the project description and pass SFSW2_prj_meta; in that case, the function calls add_granular_dbWork to add the table need_outputs to dbWork.

Usage

1
setup_dbWork(path, sim_size, include_YN, resume = FALSE, SFSW2_prj_meta = NULL)

Arguments

path

A character string. Path to the folder where the database will be created.

resume

A logical value. If TRUE and dbWork exists, then function connects to the existing database. If FALSE, then a new database is created (possibly overwriting an existing one).

SFSW2_prj_meta

An environment. Required if use_granular_control is set or if sim_size or path are missing. If passed as argument and resume and dbWork exists, then recreate_dbWork is called.

Value

A logical value indicating success/failure of setting up/connecting to dbWork and initializing with runIDs.


Burke-Lauenroth-Lab/SoilWat_R_Wrapper documentation built on Aug. 14, 2020, 5:17 p.m.