tests/testthat/test-annotation-plumber.R

test_that("plumber blocks all gets called and that returns overwrite", {
  pa <- api("annotations/plumber.R")

  expect_true(pa$get_data("first"))
  expect_true(pa$get_data("second"))
})

Try the plumber2 package in your browser

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

plumber2 documentation built on Jan. 20, 2026, 5:06 p.m.