R/a.R

Defines functions make_do

### =========================================================================
### utilities for defining the package
### -------------------------------------------------------------------------
###

make_do <- function(fun) {
    args <- formals(fun)
    args[] <- lapply(names(args), as.name)
    as.function(c(formals(fun),
                  call("eval", as.call(c(substitute(fun), args)))))
}

globalVariables(c("count", # output subset() expression
                  "len" # output within() expression
                  ))

Try the HelloRanges package in your browser

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

HelloRanges documentation built on Nov. 8, 2020, 7:05 p.m.