Running examples in ‘trendeval-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: evaluate_resampling
> ### Title: Tools for model evaluation
> ### Aliases: evaluate_resampling evaluate_aic evaluate_models
> 
> ### ** Examples
> 
> x <- rnorm(100, mean = 0)
> y <- rpois(n = 100, lambda = exp(x + 1))
> dat <- data.frame(x = x, y = y)
> 
> model <- trending::glm_model(y ~ x, poisson)
Loading required namespace: cli
> evaluate_resampling(model, dat)
Error in `metric_set()`:
! Failed to compute `<nmrc_mtr>()`.
Caused by error in `dplyr::summarise()`:
ℹ In argument: `.estimate = metric_fn(...)`.
Caused by error in `validate_class()`:
! `truth` should be a numeric but a NULL was supplied.
Backtrace:
     ▆
  1. ├─trendeval::evaluate_resampling(model, dat)
  2. │ └─base::lapply(...)
  3. │   └─trendeval (local) FUN(X[[i]], ...)
  4. │     └─yardstick::metrics(validation, validation[[response]], validation$estimate)
  5. │       └─base::mapply(...)
  6. │         └─yardstick (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
  7. │           ├─base::tryCatch(...)
  8. │           │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
  9. │           │   └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
 10. │           │     └─base (local) doTryCatch(return(expr), name, parentenv, handler)
 11. │           └─rlang::eval_tidy(expr, data = data, env = env)
 12. ├─yardstick (local) `<nmrc_mtr>`(...)
 13. ├─yardstick:::rmse.data.frame(...)
 14. │ └─yardstick::metric_summarizer(...)
 15. │   ├─dplyr::summarise(...)
 16. │   └─dplyr:::summarise.data.frame(...)
 17. │     └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise")
 18. │       ├─base::withCallingHandlers(...)
 19. │       └─dplyr:::map(quosures, summarise_eval_one, mask = mask)
 20. │         └─base::lapply(.x, .f, ...)
 21. │           └─dplyr (local) FUN(X[[i]], ...)
 22. │             └─mask$eval_all_summarise(quo)
 23. │               └─dplyr (local) eval()
 24. └─yardstick (local) metric_fn(...)
 25.   └─yardstick::metric_vec_template(...)
 26.     └─yardstick:::validate_truth_estimate_checks(...)
 27.       └─yardstick:::validate_class(truth, "truth", cls[1])
 28.         └─rlang::abort(...)
Execution halted