R/zzz.R

Defines functions assert mssg

mssg <- function(v, ...) if (v) message(...)
assert <- function(x, y) {
  if (!is.null(x)) {
    if (!inherits(x, y)) {
      stop(deparse(substitute(x)), " must be of class ",
        paste0(y, collapse = ", "), call. = FALSE)
    }
  }
}

Try the taxizedb package in your browser

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

taxizedb documentation built on April 4, 2023, 1:08 a.m.