axe_env: Axe an environment.

View source: R/axe-generics.R

axe_envR Documentation

Axe an environment.

Description

Remove the environment(s) attached to modeling objects as they are not required in the downstream analysis pipeline. If found, the environment is replaced with rlang::base_env().

Usage

axe_env(x, verbose = FALSE, ...)

Arguments

x

A model object.

verbose

Print information each time an axe method is executed. Notes how much memory is released and what functions are disabled. Default is FALSE.

...

Any additional arguments related to axing.

Value

Model object with empty environments.

Methods

\Sexpr[stage=render,results=rd]{butcher:::methods_rd("axe_env")}

butcher documentation built on Aug. 23, 2023, 9:06 a.m.