Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ Encoding: UTF-8
Language: en-US
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1.9001
RoxygenNote: 7.3.2
2 changes: 2 additions & 0 deletions tests/testthat/test-engine-parameters-c5.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(tidymodels)
data(two_class_dat, package = "modeldata")

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-engine-parameters-earth.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(tidymodels)

mars_mod <-
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-engine-parameters-randomForest.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(tidymodels)

rf_mod <-
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-engine-parameters-ranger.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(tidymodels)

rf_mod <-
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-mars-tuning.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
library(testthat)

# ------------------------------------------------------------------------------
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

data(two_class_dat, package = "modeldata")
set.seed(7898)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-parsnip-model-formula.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

test_that('error without model formula (workflow, no tune)', {
skip_if_not_installed("parsnip", minimum_version = "1.1.1.9001")

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-spatialsample-tuning.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
library(testthat)

# ------------------------------------------------------------------------------
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(spatialsample)
set.seed(7898)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-stacks-columns.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# load packages
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(testthat)

library(stacks)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-stacks-tuning.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

# load libraries ----------------------------------------------------------
library(stacks)
library(tune)
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-augment.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(testthat)
library(tidymodels)
library(prodlim)
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("augmenting survival models", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-fit-resamples.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(baguette))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("resampling survival models with static metric", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-fit_best.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("fit best with static metric", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-last-fit.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("last fit for survival models with static metric", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-autoplot.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(finetune))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9005")

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-bayes.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("Bayesian tuning survival models with static metric", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-case-weights.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9003")

test_that("grid tuning survival models with importance case weights", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-compute-metrics.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9014")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("compute_metrics works with survival models", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-eval-time-attribute.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(finetune))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9006")


Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-grid.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("grid tuning survival models with static metric", {
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-survival-tune-int-pctl.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(finetune))

test_that("percentile internals for survival models with static metric", {
skip_if_not_installed("prodlim")

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9015")
skip_if_not_installed("yardstick", minimum_version = "1.3.0")

# standard setup start -------------------------------------------------------
Expand Down Expand Up @@ -68,7 +69,6 @@ test_that("percentile internals for survival models with integrated metric", {
skip_if_not_installed("prodlim")
skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9013")
skip_if_not_installed("yardstick", minimum_version = "1.3.0")

# standard setup start -------------------------------------------------------
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-sa.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(finetune))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9006")

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune-select.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")

test_that("select_*() with static metric", {
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-survival-tune-show-best.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

test_that("show_best with censored data - integrated metric - grid", {

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune_race_anova.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(finetune))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9005")

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-tune_race_win_loss.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(finetune))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9006")

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-workflow-set-fit_best.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")
skip_if_not_installed("workflowsets", minimum_version = "1.0.1.9002")

Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-survival-workflow-set.R
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

suppressPackageStartupMessages(library(tidymodels))
suppressPackageStartupMessages(library(censored))
suppressPackageStartupMessages(library(baguette))

skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("tune", minimum_version = "1.1.2.9011")
skip_if_not_installed("yardstick", minimum_version = "1.2.0.9001")
skip_if_not_installed("workflowsets", minimum_version = "1.0.1.9001")

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-survival-workflows.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")
skip_if_not_installed("censored", minimum_version = "0.2.0.9000")
skip_if_not_installed("parsnip", minimum_version = "1.1.0.9003")
skip_if_not_installed("tune", minimum_version = "1.1.1.9001")

library(tidymodels)
suppressPackageStartupMessages(library(censored))
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-tune-catalog-finetune.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

# copied from https://github.com/tidymodels/tune/blob/main/tests/testthat/helper-tune-package.R
catalog_lines <- function(lines) {
lines[grepl("^>", lines)]
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-tune_bayes.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(tidymodels)

test_that('tune recipe and model, which has_unknowns', {
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-yardstick-known-selections.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
skip_if_not_installed("tune", minimum_version = "1.3.0.9005")

library(tune)
library(rsample)
library(parsnip)
Expand Down
Loading