prEnvModelCall: Runs an 'fastDoCall()' within the environment of the model

View source: R/private_functions.R

prEnvModelCallR Documentation

Runs an fastDoCall() within the environment of the model

Description

Sometimes the function can't find some of the variables that were available when running the original variable. This function uses the as.formula() together with environment() in order to get the environment that the original code used.

Usage

prEnvModelCall(model, what, ...)

Arguments

model

The model used

what

The function or non-empty character string used for fastDoCall()

...

Additional arguments passed to the function


Greg documentation built on Nov. 16, 2022, 5:06 p.m.