Accepts formula-like input, converts it with [stats::as.formula()], validates it using [validateSafeFormula()], and returns the formula.
asFormula(object, env = parent.frame(),
additional_allowed_functions = NULL)A validated formula object.
A formula-like object (typically a character string or formula).
The environment to use when parsing character formulas.
Optional character vector of extra function names to permit for this conversion and validation call.