Skip to content

Commit

Permalink
Optionally skip test requiring magick
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Oct 8, 2024
1 parent ef5cb8e commit 1c83913
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-images.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ df <- data.frame(
)

test_that("multiple images", {
skip_if_not_installed("magick")

ft <- flextable(df)
ft <- mk_par(ft, j = "plot", value = as_paragraph(as_image(rlogo, width = .3, height = 0.23)), part = "header")
ft <- mk_par(ft, j = "plot", value = as_paragraph(as_image(plot, guess_size = TRUE)))
Expand Down

0 comments on commit 1c83913

Please sign in to comment.