R/meta.R

Defines functions tag

tag <- function(type, expr, comment = NULL) {
        stopifnot(type %in% c("result", "data"))
        cachedir <- cache()
        eval(substitute(expr), parent.frame())
        setConfig("expr.tag", type)
}
rdpeng/cacher documentation built on May 27, 2019, 3:06 a.m.