simargs: Access or clear arguments for calls to mrgsim()

View source: R/utils.R

simargsR Documentation

Access or clear arguments for calls to mrgsim()

Description

As a model object navigates a pipeline prior to simulation, arguments are collected to eventually be passed to mrgsim(). simargs() lets you intercept and possibly clear those arguments.

Usage

simargs(x, which = NULL, clear = FALSE, ...)

Arguments

x

model object.

which

character with length 1 naming a single arg to get.

clear

logical indicating whether or not to clear args from the model object.

...

not used.

Value

If clear is TRUE, the argument list is cleared and the model object is returned. Otherwise, the argument list is returned.

Examples

mod <- mrgsolve::house()
mod %>% Req(CP, RESP) %>% carry_out(evid, WT, FLAG) %>% simargs()


mrgsolve documentation built on Oct. 18, 2024, 5:12 p.m.

Related to simargs in mrgsolve...