wtCheckConfiguration: check WTAQ configuration

wtCheckConfigurationR Documentation

check WTAQ configuration

Description

Checks a WTAQ configuration for its structure

Usage

wtCheckConfiguration(configuration, part = "complete", dbg = TRUE)

Arguments

configuration

WTAQ configuration (complete) or sub-configuration (general, aquifer,

rainage, times, solution, pumpwell, obswell)

part

one of c("complete", "general", "aquifer", "drainage", "times",

"solution", "pumpwell", "obswell")

dbg

if TRUE, debug messages are shown, else not.

Value

Error message or "" if no error occurred

Author(s)

Hauke Sonnenberg

Examples






# Generate default configuration


cconf <- wtConfigure()  





# Check (complete) configuration. No error -> ok


wtCheckConfiguration(cconf) 





# Generate default observation well configuration


oconf <- wtConfigureObservationWell()





# Check "obswell" configuration. No error -> ok


wtCheckConfiguration(oconf, "obswell") 





# Set obswells in complete configuration (forgetting that obswells must be


# a list!):


cconf$obswells <- oconf 





# Check (complete) configuration again 


# -> Error when "Checking config of observation well 1".


wtCheckConfiguration(cconf) 



KWB-R/kwb.wtaq documentation built on June 17, 2022, 3:05 a.m.