R/as.covar_fun.R

Defines functions eval.covar

## Cleanly evalute the covarness of a function
eval.covar <- function(fun, null.return = NULL) {
    is_covar <- FALSE
    if(!is.null(fun)) {
        return(all(c("is_covar", "TRUE") %in% as.character(body(fun)[[length(body(fun))]])))
    } else {
        return(null.return)
    }
}

Try the dispRity package in your browser

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

dispRity documentation built on Aug. 9, 2022, 5:11 p.m.