From c58bfb1948930f462d20dead9cfe2a1f87244e45 Mon Sep 17 00:00:00 2001 From: "Simon P. Couch" Date: Fri, 21 Jul 2023 06:12:05 -0400 Subject: [PATCH] remove dependency on dev yardstick (#694) Co-authored-by: Max Kuhn --- DESCRIPTION | 2 +- tests/testthat/test-grid.R | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 414ee6fb5..10b719f2c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -38,7 +38,7 @@ Imports: vctrs (>= 0.6.1), withr, workflows (>= 1.0.0), - yardstick (>= 1.2.0.9001) + yardstick (>= 1.2.0) Suggests: C50, censored, diff --git a/tests/testthat/test-grid.R b/tests/testthat/test-grid.R index 263b33b77..4302f8c6c 100644 --- a/tests/testthat/test-grid.R +++ b/tests/testthat/test-grid.R @@ -132,6 +132,7 @@ test_that("tune model only (without recipe, multi-predict. #695)", { test_that("tune model only (fairness - include `by` variable as predictor)", { skip_on_cran() + skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001") knn <- parsnip::nearest_neighbor("classification", "kknn", neighbors = tune()) mtcars_fair <- mtcars @@ -171,6 +172,7 @@ test_that("tune model only (fairness - include `by` variable as predictor)", { test_that("tune model only (fairness - don't include `by` variable as predictor)", { skip_on_cran() + skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001") knn <- parsnip::nearest_neighbor("classification", "kknn", neighbors = tune()) mtcars_fair <- mtcars @@ -210,6 +212,7 @@ test_that("tune model only (fairness - don't include `by` variable as predictor) test_that("tune model only (fairness metrics - evaluate across multiple `by`)", { skip_on_cran() + skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001") knn <- parsnip::nearest_neighbor("classification", "kknn", neighbors = tune()) mtcars_fair <- mtcars @@ -250,6 +253,7 @@ test_that("tune model only (fairness metrics - evaluate across multiple `by`)", test_that("tune model only (fairness - evaluate across multiple `by`, same metric)", { skip_on_cran() + skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001") knn <- parsnip::nearest_neighbor("classification", "kknn", neighbors = tune()) mtcars_fair <- mtcars @@ -291,6 +295,7 @@ test_that("tune model only (fairness - evaluate across multiple `by`, same metri test_that("tune model only (fairness - evaluate only fairness metrics)", { skip_on_cran() + skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001") knn <- parsnip::nearest_neighbor("classification", "kknn", neighbors = tune()) mtcars_fair <- mtcars