From 58f26a4c61c3065907db71cfe3c41f5f05cb964a Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Sat, 21 Dec 2024 16:09:15 -0800 Subject: [PATCH] add mising skip_if_not_installed("lme4") --- tests/testthat/test-step_lencode_mixed.R | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/testthat/test-step_lencode_mixed.R b/tests/testthat/test-step_lencode_mixed.R index f3bf3c9..6cfda80 100644 --- a/tests/testthat/test-step_lencode_mixed.R +++ b/tests/testthat/test-step_lencode_mixed.R @@ -1,6 +1,7 @@ test_that("step_lencode_mixed works", { skip_if_not_installed("recipes") skip_if_not_installed("embed") + skip_if_not_installed("lme4") mtcars <- dplyr::as_tibble(mtcars) mtcars$gear <- as.factor(mtcars$gear) @@ -23,6 +24,7 @@ test_that("step_lencode_mixed works", { test_that("step_lencode_mixed only calculates what is sufficient", { skip_if_not_installed("recipes") skip_if_not_installed("embed") + skip_if_not_installed("lme4") mtcars <- dplyr::as_tibble(mtcars) mtcars$gear <- as.factor(mtcars$gear) @@ -44,6 +46,7 @@ test_that("step_lencode_mixed only calculates what is sufficient", { test_that("step_lencode_mixed works with empty selections", { skip_if_not_installed("recipes") skip_if_not_installed("embed") + skip_if_not_installed("lme4") mtcars <- dplyr::as_tibble(mtcars) mtcars$gear <- as.factor(mtcars$gear) @@ -65,7 +68,10 @@ test_that("step_lencode_mixed works with empty selections", { test_that("spark - step_lencode_mixed works", { skip_if_not_installed("recipes") + skip_if_not_installed("embed") + skip_if_not_installed("lme4") skip_if_not_installed("sparklyr") + skip_if(is.na(testthat_spark_env_version())) mtcars_lencode_mixed <- dplyr::as_tibble(mtcars) @@ -91,6 +97,8 @@ test_that("spark - step_lencode_mixed works", { test_that("SQLite - step_lencode_mixed works", { skip_if_not_installed("recipes") + skip_if_not_installed("embed") + skip_if_not_installed("lme4") skip_if_not_installed("DBI") skip_if_not_installed("RSQLite") skip_on_cran() @@ -120,6 +128,8 @@ test_that("SQLite - step_lencode_mixed works", { test_that("duckdb - step_lencode_mixed works", { skip_if_not_installed("recipes") + skip_if_not_installed("embed") + skip_if_not_installed("lme4") skip_if_not_installed("DBI") skip_if_not_installed("duckdb") @@ -148,6 +158,8 @@ test_that("duckdb - step_lencode_mixed works", { test_that("arrow - step_lencode_mixed works", { skip_if_not_installed("recipes") + skip_if_not_installed("embed") + skip_if_not_installed("lme4") skip_if_not_installed("arrow") mtcars_lencode_mixed <- dplyr::as_tibble(mtcars)