Learn R Programming

plumber (version 1.2.2)

pr: Create a new Plumber router

Description

Create a new Plumber router

Usage

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

Value

A new Plumber router

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

Examples

Run this code
if (FALSE) {
pr() %>%
  pr_run()
}

Run the code above in your browser using DataLab