Skip to contents

Check if required inputs are present for a function

Usage

utilMWRinputcheck(inputs)

Arguments

inputs

list of arguments passed from the parent function

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')

utilMWRinputcheck(inputchk)
#> NULL