utilMWRinputcheck {MassWateR} | R Documentation |
Check if required inputs are present for a function
Description
Check if required inputs are present for a function
Usage
utilMWRinputcheck(inputs, nocheck = NULL)
Arguments
inputs |
list of arguments passed from the parent function |
nocheck |
optional character vector of inputs not to check, allows for optional inputs |
Value
NULL if all inputs are present, otherwise an error message indicating which inputs are missing
Examples
inputchk <- formals(tabMWRcom)
inputchk$res <- system.file('extdata/ExampleResults.xlsx', package = 'MassWateR')
inputchk$frecom <- system.file('extdata/ExampleDQOFrequencyCompleteness.xlsx',
package = 'MassWateR')
inputchk$cens <- system.file('extdata/ExampleCensored.xlsx', package = 'MassWateR')
utilMWRinputcheck(inputchk)
[Package MassWateR version 2.2.0 Index]