recreate_dbWork: Re-create or update 'dbWork' based on 'dbOutput'

Description Usage Arguments Value Examples

View source: R/WorkDatabase.R

Description

Re-create or update ‘dbWork’ based on ‘dbOutput’

Usage

1
2
3
4
5
6
7
8
recreate_dbWork(
  path,
  dbOutput,
  use_granular_control,
  SFSW2_prj_meta = NULL,
  verbose = FALSE,
  print.debug = FALSE
)

Arguments

path

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

dbOutput

A character string. Full name to the output database.

use_granular_control

A logical vector.

SFSW2_prj_meta

An environment. If not NULL, then path, dbOutput, and/or use_granular_control may be missing. If not NULL, then code checks that no temporary output files remain unprocessed. This is because this function only checks output in the database ‘dbOutput’, but not in the database(s) files ‘dbTempOut’.

Value

A logical vector indicating success.

Examples

1
2
3
4
5
6
## Not run: 
if (exists("SFSW2_prj_meta")) {
  # `SFSW2_prj_meta` object as produced, e.g., for `TestPrj4`
  recreate_dbWork(SFSW2_prj_meta = SFSW2_prj_meta)
}
## End(Not run)

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