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 June 14, 2025, 1:24 a.m.