Skip to content

Commit

Permalink
require lattice
Browse files Browse the repository at this point in the history
  • Loading branch information
donyunardi committed Aug 27, 2024
1 parent db0ad06 commit d06a173
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-PictureBlock.R
Original file line number Diff line number Diff line change
Expand Up @@ -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))
)
Expand Down

0 comments on commit d06a173

Please sign in to comment.