R/nse.R

#' Call a function with only the subset of ...
#' that match its formals.
call.with <- function(fn, ...) {
    d <- list(...)
    do.call(fn, d[names(d) %in% names(formals(fn))])
}
jdidion/miscUtils documentation built on May 18, 2019, 11:30 p.m.