R/safecall.R

## a class to hold unevaluated function calls

setClass(
  "safecall",
  slots=c(
    call="call",
    envir="environment"
  ),
  prototype=prototype(
    call=NULL,
    envir=NULL
  )
)

safecall <- function (...) {
  new("safecall",call=match.call(),envir=parent.frame())
}
kidusasfaw/pomp documentation built on May 20, 2019, 2:59 p.m.