powered by
These functions read and write to the environment where the package stores information about model specifications.
get_model_env()get_from_env(items)set_in_env(...)set_env_val(name, value)
get_from_env(items)
set_in_env(...)
set_env_val(name, value)
A character string of objects in the model environment.
Named values that will be assigned to the model environment.
A single character value for a new symbol in the model environment.
A single value for a new value in the model environment.
"Making a parsnip model from scratch" https://tidymodels.github.io/parsnip/articles/articles/Scratch.html
# NOT RUN { # Access the model data: current_code <- get_model_env() ls(envir = current_code) # }
Run the code above in your browser using DataLab