From fa51b037800166779bb58cfc0bdf589774003e34 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 21 Apr 2025 12:29:37 -0700 Subject: [PATCH] Make pillar dependency explicit --- tests/testthat/test-deparse.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/testthat/test-deparse.R b/tests/testthat/test-deparse.R index fbd5dba9d..28ee5ac46 100644 --- a/tests/testthat/test-deparse.R +++ b/tests/testthat/test-deparse.R @@ -844,6 +844,9 @@ test_that("backslashes in strings are properly escaped (#1160)", { }) test_that("formulas are deparsed (#1169)", { + # test output differs slightly with/without pillar + skip_if_not_installed("pillar") + # Evaluated formulas are treated as objects expect_equal( expr_deparse(~foo), @@ -868,6 +871,9 @@ test_that("formulas are deparsed (#1169)", { }) test_that("matrices and arrays are formatted (#383)", { + # test output differs slightly with/without pillar + skip_if_not_installed("pillar") + mat <- matrix(1:3) expect_equal(as_label(mat), "") expect_equal(expr_deparse(mat), "")