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())
}

Try the pomp package in your browser

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

pomp documentation built on Aug. 8, 2023, 1:08 a.m.