Skip to content

Create a new Plumber router

Usage

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) { # \dontrun{
pr() %>%
  pr_run()
} # }