From d06a173e4ce05815ae4b7bc8044e1a06796b5451 Mon Sep 17 00:00:00 2001 From: Dony Unardi Date: Tue, 27 Aug 2024 15:32:59 -0700 Subject: [PATCH] require lattice --- tests/testthat/test-PictureBlock.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/testthat/test-PictureBlock.R b/tests/testthat/test-PictureBlock.R index 7ba1fef3..1c264774 100644 --- a/tests/testthat/test-PictureBlock.R +++ b/tests/testthat/test-PictureBlock.R @@ -152,6 +152,8 @@ testthat::test_that("set_content accepts a `grob` object", { }) testthat::test_that("set_content accepts a `trellis` object", { + testthat::skip_if_not_installed("lattice") + testthat::expect_no_error( PictureBlock$new()$set_content(lattice::bwplot(1)) )