R/utils.R

Defines functions callget

# Shorter version to extract a parameter from the call. Makes the
# probing more compact, and if the value is not specified, returns
# the default.
callget <- function(call, env, param, default) {
  if (is.null(call[[param]])) {
    return(default)
  }

  return(eval(call[[param]], env))

}
AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.