Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Candidate 0.3.0 #81

Merged
merged 7 commits into from
Dec 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add skip_on_cran()
EmilHvitfeldt committed Dec 21, 2024
commit a0cf39d2b7af03ee86aaaf127ac264d83f795d73
1 change: 1 addition & 0 deletions tests/testthat/test-augment.R
Original file line number Diff line number Diff line change
@@ -38,6 +38,7 @@ test_that("SQLite - augment() works", {
skip_if_not_installed("workflows")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

12 changes: 6 additions & 6 deletions tests/testthat/test-model-partykit.R
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
test_that("decision_tree(partykit) works with type = class", {
skip_if_not_installed("parsnip")
skip_if_not_installed("tidypredict")
skip_if_not_installed("bonsai")
library(bonsai)
skip_if_not_installed("bonsai")
library(bonsai)

mtcars$vs <- factor(mtcars$vs)

@@ -27,8 +27,8 @@ test_that("decision_tree(partykit) works with type = class", {
test_that("decision_tree(partykit) works with type = prob", {
skip_if_not_installed("parsnip")
skip_if_not_installed("tidypredict")
skip_if_not_installed("bonsai")
library(bonsai)
skip_if_not_installed("bonsai")
library(bonsai)

mtcars$vs <- factor(mtcars$vs)

@@ -59,8 +59,8 @@ test_that("decision_tree(partykit) works with type = prob", {
test_that("decision_tree(partykit) works with type = c(class, prob)", {
skip_if_not_installed("parsnip")
skip_if_not_installed("tidypredict")
skip_if_not_installed("bonsai")
library(bonsai)
skip_if_not_installed("bonsai")
library(bonsai)

mtcars$vs <- factor(mtcars$vs)

2 changes: 2 additions & 0 deletions tests/testthat/test-step_adasyn.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_adasyn works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_adasyn <- dplyr::as_tibble(mtcars)
mtcars_adasyn$vs <- as.factor(mtcars$vs)
@@ -107,6 +108,7 @@ test_that("duckdb - step_adasyn works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_adasyn <- dplyr::as_tibble(mtcars)
mtcars_adasyn$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_bin2factor.R
Original file line number Diff line number Diff line change
@@ -76,6 +76,7 @@ test_that("SQLite - step_bin2factor works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_boxcox.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_BoxCox works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_bsmote.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_bsmote works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_bsmote <- dplyr::as_tibble(mtcars)
mtcars_bsmote$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_center.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_center works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_discretize.R
Original file line number Diff line number Diff line change
@@ -125,6 +125,7 @@ test_that("SQLite - step_discretize works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_discretize <- dplyr::as_tibble(mtcars)
mtcars_discretize[1, ] <- NA
1 change: 1 addition & 0 deletions tests/testthat/test-step_downsample.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_downsample works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_downsample <- dplyr::as_tibble(mtcars)
mtcars_downsample$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_dummy.R
Original file line number Diff line number Diff line change
@@ -105,6 +105,7 @@ test_that("SQLite - step_dummy works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars1 <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_impute_mean.R
Original file line number Diff line number Diff line change
@@ -77,6 +77,7 @@ test_that("SQLite - step_impute_mean works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_impute_mean <- dplyr::as_tibble(mtcars)
mtcars_impute_mean[2:4, ] <- NA
1 change: 1 addition & 0 deletions tests/testthat/test-step_impute_median.R
Original file line number Diff line number Diff line change
@@ -78,6 +78,7 @@ test_that("SQLite - step_impute_median works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_impute_median <- dplyr::as_tibble(mtcars)
mtcars_impute_median[2:4, ] <- NA
1 change: 1 addition & 0 deletions tests/testthat/test-step_impute_mode.R
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@ test_that("SQLite - step_impute_mode works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_impute_mode <- dplyr::as_tibble(mtcars)
mtcars_impute_mode$gear <- letters[mtcars$gear]
1 change: 1 addition & 0 deletions tests/testthat/test-step_indicate_na.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_indicate_na works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_indicate_na <- dplyr::as_tibble(mtcars)
mtcars_indicate_na[2:4, ] <- NA
1 change: 1 addition & 0 deletions tests/testthat/test-step_intercept.R
Original file line number Diff line number Diff line change
@@ -64,6 +64,7 @@ test_that("SQLite - step_intercept works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_inverse.R
Original file line number Diff line number Diff line change
@@ -91,6 +91,7 @@ test_that("SQLite - step_inverse works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_lag.R
Original file line number Diff line number Diff line change
@@ -60,6 +60,7 @@ test_that("SQLite - step_lag works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_lencode_bayes.R
Original file line number Diff line number Diff line change
@@ -98,6 +98,7 @@ test_that("SQLite - step_lencode_bayes works", {
skip_if_not_installed("rstanarm")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_lencode_bayes <- dplyr::as_tibble(mtcars)
mtcars_lencode_bayes$gear <- as.factor(mtcars_lencode_bayes$gear)
1 change: 1 addition & 0 deletions tests/testthat/test-step_lencode_glm.R
Original file line number Diff line number Diff line change
@@ -93,6 +93,7 @@ test_that("SQLite - step_lencode_glm works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_lencode_glm <- dplyr::as_tibble(mtcars)
mtcars_lencode_glm$gear <- as.factor(mtcars_lencode_glm$gear)
1 change: 1 addition & 0 deletions tests/testthat/test-step_lencode_mixed.R
Original file line number Diff line number Diff line change
@@ -93,6 +93,7 @@ test_that("SQLite - step_lencode_mixed works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_lencode_mixed <- dplyr::as_tibble(mtcars)
mtcars_lencode_mixed$gear <- as.factor(mtcars_lencode_mixed$gear)
1 change: 1 addition & 0 deletions tests/testthat/test-step_log.R
Original file line number Diff line number Diff line change
@@ -91,6 +91,7 @@ test_that("SQLite - step_log works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_mutate.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_mutate works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_nearmiss.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_nearmiss works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_nearmiss <- dplyr::as_tibble(mtcars)
mtcars_nearmiss$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_normalize.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_normalize works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_novel.R
Original file line number Diff line number Diff line change
@@ -96,6 +96,7 @@ test_that("SQLite - step_novel works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_novel <- dplyr::as_tibble(mtcars)
mtcars_novel$gear <- letters[mtcars$gear]
1 change: 1 addition & 0 deletions tests/testthat/test-step_other.R
Original file line number Diff line number Diff line change
@@ -98,6 +98,7 @@ test_that("SQLite - step_other works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_other <- dplyr::as_tibble(mtcars)
mtcars_other$gear <- letters[mtcars$gear]
1 change: 1 addition & 0 deletions tests/testthat/test-step_pca.R
Original file line number Diff line number Diff line change
@@ -95,6 +95,7 @@ test_that("SQLite - step_pca works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars0 <- dplyr::as_tibble(mtcars)
mtcars0$hp <- NULL
1 change: 1 addition & 0 deletions tests/testthat/test-step_pca_sparse.R
Original file line number Diff line number Diff line change
@@ -110,6 +110,7 @@ test_that("SQLite - step_pca_sparse works", {
skip_if_not_installed("embed")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars0 <- dplyr::as_tibble(mtcars)
mtcars0$hp <- NULL
1 change: 1 addition & 0 deletions tests/testthat/test-step_pca_sparse_bayes.R
Original file line number Diff line number Diff line change
@@ -115,6 +115,7 @@ test_that("SQLite - step_pca_sparse_bayes works", {
skip_if_not_installed("VBsparsePCA")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars0 <- dplyr::as_tibble(mtcars)
mtcars0$hp <- NULL
1 change: 1 addition & 0 deletions tests/testthat/test-step_pca_truncated.R
Original file line number Diff line number Diff line change
@@ -108,6 +108,7 @@ test_that("SQLite - step_pca_truncated works", {
skip_if_not_installed("embed")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars0 <- dplyr::as_tibble(mtcars)
mtcars0$hp <- NULL
1 change: 1 addition & 0 deletions tests/testthat/test-step_range.R
Original file line number Diff line number Diff line change
@@ -91,6 +91,7 @@ test_that("SQLite - step_range works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_ratio.R
Original file line number Diff line number Diff line change
@@ -85,6 +85,7 @@ test_that("SQLite - step_ratio works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_rename.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_rename works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_rose.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_rose works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_rose <- dplyr::as_tibble(mtcars)
mtcars_rose$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_scale.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_scale works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_smote.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_smote works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_smote <- dplyr::as_tibble(mtcars)
mtcars_smote$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_smotenc.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_smotenc works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_smotenc <- dplyr::as_tibble(mtcars)
mtcars_smotenc$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_sqrt.R
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ test_that("SQLite - step_sqrt works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars <- dplyr::as_tibble(mtcars)

1 change: 1 addition & 0 deletions tests/testthat/test-step_tomek.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_tomek works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_tomek <- dplyr::as_tibble(mtcars)
mtcars_tomek$vs <- as.factor(mtcars$vs)
1 change: 1 addition & 0 deletions tests/testthat/test-step_unknown.R
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ test_that("SQLite - step_unknown works", {
skip_if_not_installed("recipes")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_unknown <- dplyr::as_tibble(mtcars)
mtcars_unknown$gear <- letters[mtcars$gear]
1 change: 1 addition & 0 deletions tests/testthat/test-step_upsample.R
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ test_that("SQLite - step_upsample works", {
skip_if_not_installed("themis")
skip_if_not_installed("DBI")
skip_if_not_installed("RSQLite")
skip_on_cran()

mtcars_upsample <- dplyr::as_tibble(mtcars)
mtcars_upsample$vs <- as.factor(mtcars$vs)