plumb_api: Process a Package's Plumber API

Description Usage Arguments Details Value Functions

View source: R/plumb.R

Description

So that packages can ship multiple plumber routers, users should store their Plumber APIs in the inst subfolder plumber (./inst/plumber/API_1/plumber.R).

Usage

1
2
3
plumb_api(package = NULL, name = NULL, edit = FALSE)

available_apis(package = NULL)

Arguments

package

Package to inspect

name

Name of the package folder to plumb().

edit

Whether or not to open the API source code for viewing / editing

Details

To view all available Plumber APIs across all packages, please call available_apis(). A package value may be provided to only display a particular package's Plumber APIs.

Value

A Plumber object. If either package or name is null, the appropriate available_apis() will be returned.

Functions


plumber documentation built on March 24, 2021, 9:06 a.m.