diff --git a/DESCRIPTION b/DESCRIPTION index d6b2a434b..7983b0c8c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -30,7 +30,7 @@ Suggests: curl, ggplot2, jsonlite, - knitr, + knitr (>= 1.49.0), lubridate, nanoarrow (>= 0.6.0), nycflights13, diff --git a/tests/testthat/_snaps/pkg-knitr.md b/tests/testthat/_snaps/pkg-knitr.md index 9fbea81cd..f26cd47e2 100644 --- a/tests/testthat/_snaps/pkg-knitr.md +++ b/tests/testthat/_snaps/pkg-knitr.md @@ -24,7 +24,7 @@ white-space: pre-wrap; } - shape: (3, 2)
ab
i32str
1"a"
2"b"
3"c"
+ shape: (3, 2)
ab
i32str
1"a"
2"b"
3"c"
``` --- @@ -53,7 +53,7 @@ white-space: pre-wrap; } - shape: (3, 2)
ab
i32str
1"a"
2"b"
3"c"
+ shape: (3, 2)
ab
i32str
1"a"
2"b"
3"c"
``` --- @@ -74,7 +74,7 @@ white-space: pre-wrap; } - shape: (3, 2)
ab
i32str
1"a"
2"b"
3"c"
+ shape: (3, 2)
ab
i32str
1"a"
2"b"
3"c"
--- diff --git a/tests/testthat/test-pkg-knitr.R b/tests/testthat/test-pkg-knitr.R index ef35247fd..abedc3298 100644 --- a/tests/testthat/test-pkg-knitr.R +++ b/tests/testthat/test-pkg-knitr.R @@ -15,7 +15,7 @@ } test_that("Snapshot test of knitr", { - skip_if_not_installed("knitr") + skip_if_not_installed("knitr", "1.49.0") skip_if_not_installed("rmarkdown") skip_if_not_installed("pillar") skip_if_not_installed("nycflights13")