Create a new Plumber router

pr(
  file = NULL,
  filters = defaultPlumberFilters,
  envir = new.env(parent = .GlobalEnv)
)

Arguments

file

Path to file to plumb

filters

A list of Plumber filters

envir

An environment to be used as the enclosure for the routers execution

Value

A new Plumber router

Examples

if (FALSE) { pr() %>% pr_run() }