From d79f032d8c91d0448685ec125f295f61231118b8 Mon Sep 17 00:00:00 2001 From: Emil Hvitfeldt Date: Tue, 17 Sep 2024 13:16:09 -0700 Subject: [PATCH] stricter recompose sparsevctrs tests --- tests/testthat/test-recompose.R | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testthat/test-recompose.R b/tests/testthat/test-recompose.R index 5f7415aa..067dce6e 100644 --- a/tests/testthat/test-recompose.R +++ b/tests/testthat/test-recompose.R @@ -75,6 +75,7 @@ test_that("validates `composition`", { test_that("sparse tibble can be turned to tibble", { skip_if_not_installed("modeldata") + withr::local_options("sparsevctrs.verbose_materialize" = 3) hotel_data <- sparse_hotel_rates() hotel_data <- sparsevctrs::coerce_to_sparse_tibble(hotel_data) @@ -91,6 +92,7 @@ test_that("sparse tibble can be turned to tibble", { test_that("sparse tibble can be turned to data.frame", { skip_if_not_installed("modeldata") + withr::local_options("sparsevctrs.verbose_materialize" = 3) hotel_data <- sparse_hotel_rates() hotel_data <- sparsevctrs::coerce_to_sparse_tibble(hotel_data) @@ -122,6 +124,7 @@ test_that("sparse tibble can be turned to matrix", { test_that("sparse tibble can be turned to dgCMatrix", { skip_if_not_installed("modeldata") + withr::local_options("sparsevctrs.verbose_materialize" = 3) hotel_mat <- sparse_hotel_rates() hotel_data <- sparsevctrs::coerce_to_sparse_tibble(hotel_mat)