-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathget_model_env.Rd
42 lines (36 loc) · 1.11 KB
/
get_model_env.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/aaa_models.R
\name{get_model_env}
\alias{get_model_env}
\alias{get_from_env}
\alias{set_in_env}
\alias{set_env_val}
\title{Working with the parsnip model environment}
\usage{
get_model_env()
get_from_env(items)
set_in_env(...)
set_env_val(name, value)
}
\arguments{
\item{items}{A character string of objects in the model environment.}
\item{...}{Named values that will be assigned to the model environment.}
\item{name}{A single character value for a new symbol in the model environment.}
\item{value}{A single value for a new value in the model environment.}
}
\description{
These functions read and write to the environment where the package stores
information about model specifications.
}
\examples{
\dontshow{if (!parsnip:::is_cran_check()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
# Access the model data:
current_code <- get_model_env()
ls(envir = current_code)
\dontshow{\}) # examplesIf}
}
\references{
"How to build a parsnip model"
\url{https://www.tidymodels.org/learn/develop/models/}
}
\keyword{internal}