From 4906c35968da4d8f2a600a622703e0e901eba566 Mon Sep 17 00:00:00 2001 From: Lukas Gessl Date: Mon, 20 Nov 2023 15:41:17 +0000 Subject: [PATCH] add tibble pkg to Suggests --- DESCRIPTION | 3 ++- tests/testthat/test-generate_xy.R | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index b9f349d..184c474 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -14,5 +14,6 @@ Encoding: UTF-8 Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Suggests: - testthat (>= 3.0.0) + testthat (>= 3.0.0), + tibble (>= 3.0.0) Config/testthat/edition: 3 diff --git a/tests/testthat/test-generate_xy.R b/tests/testthat/test-generate_xy.R index d492419..8cba64b 100644 --- a/tests/testthat/test-generate_xy.R +++ b/tests/testthat/test-generate_xy.R @@ -1,7 +1,7 @@ test_that("generate_predictor works", { expr_df <- matrix(1:12, nrow = 4) - pheno_df <- data.frame( + pheno_df <- tibble::tibble( continuous_var = c(1, 2, 3), discrete_var = c("A", "B", "A") ) @@ -25,7 +25,7 @@ test_that("generate_predictor works", { # Define test cases test_that("generate_response works", { # Create a sample pheno_tbl - pheno_tbl <- data.frame( + pheno_tbl <- tibble::tibble( pfs_yrs = c(1.5, 2.5, 3.0, 4.0), progression = c(0, 1, 0, 0), use_column = c("A", "B", "C", "D")