R/context.R

context_env <- new_environment()

from_context <- function(what){
  context_env[[what]] %||% abort(glue("{expr} should only be called in a data context", expr = deparse(sys.call(-1))))
}
olascodgreat/samife documentation built on May 13, 2019, 6:11 p.m.