get_model_env: Working with the parsnip model environment

Description Usage Arguments References Examples

View source: R/aaa_models.R

Description

These functions read and write to the environment where the package stores information about model specifications.

Usage

1
2
3
4
5
6
7

Arguments

items

A character string of objects in the model environment.

...

Named values that will be assigned to the model environment.

name

A single character value for a new symbol in the model environment.

value

A single value for a new value in the model environment.

References

"Making a parsnip model from scratch" https://tidymodels.github.io/parsnip/articles/articles/Scratch.html

Examples

1
2
3
# Access the model data:
current_code <- get_model_env()
ls(envir = current_code)

parsnip documentation built on July 8, 2020, 7:22 p.m.