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 Aug. 16, 2024, 5:33 p.m.