diff --git a/NEWS.md b/NEWS.md index 26b2da6..3963a8c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,8 @@ * Fixed bug where `tune_sim_anneal()` would fail when supplied parameters needing finalization. The function will now finalize needed parameter ranges internally (#39). +* Fixed bug where packages specified in `control_race(pkgs)` were not actually loaded in `tune_race_anova()` (#74). + * `autoplot()` methods for racing objects will now use integers in x-axis breaks (#75). * Enabling the `verbose_elim` control option for `tune_race_anova()` will now additionally introduce a message confirming that the function is evaluating against the burn-in resamples. diff --git a/R/tune_race_anova.R b/R/tune_race_anova.R index 26688e0..a53c32b 100644 --- a/R/tune_race_anova.R +++ b/R/tune_race_anova.R @@ -232,7 +232,7 @@ tune_race_anova_workflow <- metrics <- tune::check_metrics_arg(metrics, object, call = call) eval_time <- tune::check_eval_time_arg(eval_time, metrics, call = call) - control$pkgs <- c(tune::required_pkgs(object), "workflows", "tidyr", "rlang") + control$pkgs <- c(control$pkgs, tune::required_pkgs(object), "workflows", "tidyr", "rlang") if (control$verbose_elim) { tune_cols <- tune::get_tune_colors()