tests/testthat/fixtures/server2/constructor.R

pa <- Plumber2$new(
  host = "0.0.0.0",
  port = 8001
)

pa$add_api_doc(list(info = list(title = "Constructor API", version = "1.0.0")))

pa

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.