R/vectorized.R

Defines functions is_vectorized

# simple function to test if a function is Vectorized
is_vectorized <- function(x) {
  is.function(x) && exists("FUN", environment(x), mode = "function") && exists("vectorize.args", environment(x))
}
jimhester/covr documentation built on April 8, 2024, 1:48 p.m.