R/checks.R

Defines functions checkInputs checkOutputs

checkInputs <- function(m, s, l, h) {
    if (!(length(m) == length(s) &
          length(m) == length(l) &
          length(m) == length(h)
          )
        ) {
        stop("Input vectors not all same length. Nothing done.")
    }
}

checkOutputs <- function(out) {
    if (any(is.na(out))) {
        warning("NAs returned. Check for invalid parameters.")
    }
}

Try the RcppTN package in your browser

Any scripts or data that you put into this service are public.

RcppTN documentation built on May 2, 2019, 8:54 a.m.