tests/testthat/test-user_guide.R

# This test uses a snapshot test.
# (https://testthat.r-lib.org/articles/snapshotting.html)
# If it fails, but the user guide is displaying correctly, update it with 
# > snapshot_accept("user_guide")
test_that("user_guide", {
  pr <- plumber::plumb(pr_path())
  expect_snapshot(cat(render_user_guide("", pr)))
})

Try the plumbertableau package in your browser

Any scripts or data that you put into this service are public.

plumbertableau documentation built on May 29, 2024, 9:58 a.m.