options: Deducing options for mcMap

Description Usage Arguments

Description

Helpers for deducing options of mcMap. This is so we can set the behaviour in the beginning of a script globally. Each call to mcMap can override these settings. Logging is enabled by default (for options(warn = 0)). For options(warn = -1) we suppress logging and warnings. For options(warn = 2) warnings are handled as errors.

Usage

1
2
3
4
5
6
getErrorsOption(errors = getOption("mctoolsErrors", 0))

getWarningsOption(warn = getOption("warn", 0))

getWarningsWhitelist(whitelist = getOption("mctoolsWarningsWhitelist",
  character()))

Arguments

errors, warn

(numeric) see options. '-1' -> 'suppress'; '0&1' -> 'log'; '2' -> 'asError'

whitelist

(character) see mcMap


INWT/mctools documentation built on Sept. 24, 2021, 9:19 p.m.