An developer focused, low dependency package in 'tidymodels' that provides functions to register how models are to be used. Functions to register models are complimented with accessor functions to retrieve registered model information to aid in model fitting and error handling.
modelenv is a developer focused package designed to provide tools to register models much in the same as is done in parsnip. This package does not replace parsnip’s registration functions, but will be used in tidyclust and future non-parsnip modeling packages to avoid complex dependencies.
You can install the released version of modelenv from CRAN with:
install.packages("modelenv")
And the development version from GitHub with:
# install.packages("pak")
pak::pak("tidymodels/modelenv")
These functions have near identical interfaces to their parsnip equivalent, see tidymodels.org - How to build a parsnip model for instructions of how to use these functions.