tests/testthat/helpers.R

#From parsnip package

# In some cases, the test value needs to be wrapped in an empty
#  environment. If arguments are set in the model specification
# (as opposed to being set by a `translate` function), they will
# need this wrapper.

new_empty_quosure <- function(expr) {
  new_quosure(expr, env = empty_env())
}

Try the SSLR package in your browser

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

SSLR documentation built on July 22, 2021, 9:08 a.m.