From 48f7595a42a43dd2cc319715b1f8a97fb234fa84 Mon Sep 17 00:00:00 2001 From: topepo Date: Wed, 23 Oct 2024 08:13:48 -0400 Subject: [PATCH] fix nocovs --- R/discrim_flexible_data.R | 2 +- R/discrim_linear_data.R | 2 +- R/discrim_quad_data.R | 2 +- R/discrim_regularized_data.R | 2 +- R/naive_Bayes_data.R | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/R/discrim_flexible_data.R b/R/discrim_flexible_data.R index 2f4b8eb..367c319 100644 --- a/R/discrim_flexible_data.R +++ b/R/discrim_flexible_data.R @@ -3,7 +3,7 @@ # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. -# nocov +# nocov start make_discrim_flexible <- function() { parsnip::set_model_engine("discrim_flexible", "classification", "earth") parsnip::set_dependency("discrim_flexible", eng = "earth", pkg = "mda") diff --git a/R/discrim_linear_data.R b/R/discrim_linear_data.R index 1c225a9..220bff2 100644 --- a/R/discrim_linear_data.R +++ b/R/discrim_linear_data.R @@ -7,7 +7,7 @@ # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. -# nocov +# nocov start make_discrim_linear_MASS <- function() { parsnip::set_model_engine("discrim_linear", "classification", "MASS") diff --git a/R/discrim_quad_data.R b/R/discrim_quad_data.R index 2696548..2e2e6a0 100644 --- a/R/discrim_quad_data.R +++ b/R/discrim_quad_data.R @@ -7,7 +7,7 @@ # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. -# nocov +# nocov start make_discrim_quad_MASS <- function() { parsnip::set_model_engine("discrim_quad", "classification", "MASS") diff --git a/R/discrim_regularized_data.R b/R/discrim_regularized_data.R index d663bbc..11b745d 100644 --- a/R/discrim_regularized_data.R +++ b/R/discrim_regularized_data.R @@ -3,7 +3,7 @@ # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. -# nocov +# nocov start make_discrim_regularized <- function() { parsnip::set_model_engine("discrim_regularized", "classification", "klaR") parsnip::set_dependency("discrim_regularized", eng = "klaR", pkg = "klaR") diff --git a/R/naive_Bayes_data.R b/R/naive_Bayes_data.R index a93b96d..1315551 100644 --- a/R/naive_Bayes_data.R +++ b/R/naive_Bayes_data.R @@ -7,7 +7,7 @@ # they are already in the parsnip model database. We'll exclude them from # coverage stats for this reason. -# nocov +# nocov start make_naive_Bayes_naivebayes <- function() { parsnip::set_model_engine("naive_Bayes", "classification", "naivebayes")