tests/testthat/_snaps/set_model_arg.md

set_model_arg() errors with wrong model argument

Code
  set_model_arg("light")
Condition
  Error in `set_model_arg()`:
  ! Model "light" has not been registered.
Code
  set_model_arg(model = c("phone", "sock"))
Condition
  Error in `set_model_arg()`:
  ! Please supply a character string for a model name (e.g. "k_means"). Not a character vector.

set_model_arg() errors with wrong engine argument

Code
  set_model_arg("thermos")
Condition
  Error in `set_model_arg()`:
  ! Please supply a character string for an engine name (e.g. "stats").
Code
  set_model_arg("thermos", c("glmnet", "stats"))
Condition
  Error in `set_model_arg()`:
  ! Please supply a character string for an engine name (e.g. "stats"). Not a character vector.
Code
  set_model_arg("thermos", NULL)
Condition
  Error in `set_model_arg()`:
  ! Please supply a character string for an engine name (e.g. "stats"). Not NULL.

set_model_arg() errors with wrong exposed argument

Code
  set_model_arg(model = "marker", eng = "stats")
Condition
  Error in `set_model_arg()`:
  ! `arg` must be a single string, not absent.
Code
  set_model_arg(model = "marker", eng = "stats", exposed = c("glmnet", "stats"))
Condition
  Error in `set_model_arg()`:
  ! `arg` must be a single string, not a character vector.
Code
  set_model_arg(model = "marker", eng = "stats", exposed = NULL)
Condition
  Error in `set_model_arg()`:
  ! `arg` must be a single string, not `NULL`.

set_model_arg() errors with wrong original argument

Code
  set_model_arg(model = "mustache", eng = "stats", exposed = "method")
Condition
  Error in `set_model_arg()`:
  ! `arg` must be a single string, not absent.
Code
  set_model_arg(model = "mustache", eng = "stats", exposed = "method", original = c(
    "not", "method"))
Condition
  Error in `set_model_arg()`:
  ! `arg` must be a single string, not a character vector.
Code
  set_model_arg(model = "mustache", eng = "stats", exposed = "method", original = NULL)
Condition
  Error in `set_model_arg()`:
  ! `arg` must be a single string, not `NULL`.

set_model_arg() errors with wrong func argument

Code
  set_model_arg(model = "unicorn", eng = "stats", exposed = "method", original = "moethod")
Condition
  Error in `set_model_arg()`:
  ! `func` should be a named vector with element `fun` and the optional elements `pkg`, `range`, `trans`, and `values`. `func` and `pkg` should both be single character strings.
Code
  set_model_arg(model = "unicorn", eng = "stats", exposed = "method", original = "method",
    func = c("not", "method"))
Condition
  Error in `set_model_arg()`:
  ! `func` should be a named vector with element `fun` and the optional elements `pkg`, `range`, `trans`, and `values`. `func` and `pkg` should both be single character strings.
Code
  set_model_arg(model = "unicorn", eng = "stats", exposed = "method", original = "method",
    func = NULL)
Condition
  Error in `set_model_arg()`:
  ! `func` should be a named vector with element `fun` and the optional elements `pkg`, `range`, `trans`, and `values`. `func` and `pkg` should both be single character strings.

set_model_arg() errors with wrong has_submodel argument

Code
  set_model_arg(model = "velcro", eng = "stats", exposed = "method", original = "moethod",
    func = list(pkg = "stats", fun = "lm"))
Condition
  Error in `set_model_arg()`:
  ! `has_submodel` must be a logical vector, not absent.
Code
  set_model_arg(model = "velcro", eng = "stats", exposed = "method", original = "method",
    func = list(pkg = "stats", fun = "lm"), has_submodel = "yes")
Condition
  Error in `set_model_arg()`:
  ! `has_submodel` must be a logical vector, not the string "yes".
Code
  set_model_arg(model = "velcro", eng = "stats", exposed = "method", original = "method",
    func = list(pkg = "stats", fun = "lm"), has_submodel = NULL)
Condition
  Error in `set_model_arg()`:
  ! `has_submodel` must be a logical vector, not `NULL`.


Try the modelenv package in your browser

Any scripts or data that you put into this service are public.

modelenv documentation built on Oct. 14, 2024, 5:08 p.m.