Skip to content

Commit 32c2204

Browse files
a kludge for ancient knitr
1 parent 204bd21 commit 32c2204

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

inst/tests/other.Rraw

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ if (loaded[["knitr"]]) {
203203
tmp = tempfile()
204204
on.exit({unlink(tmp); options(old)})
205205
invisible(knit(testDir("knitr.Rmd"), tmp, quiet=TRUE))
206-
test(11.2, tools::Rdiff(tmp, testDir("knitr.md.save")), 0L)
206+
# TODO(R>=3.6.0): Try removing this kludge
207+
if (packageVersion("knitr") > "1.45")
208+
test(11.2, tools::Rdiff(tmp, testDir("knitr.md.save")), 0L)
207209
})
208210
}
209211

0 commit comments

Comments
 (0)