plumb_api {plumber} | R Documentation |
Process a Package's Plumber API
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
plumb_api(package = NULL, name = NULL, edit = FALSE)
available_apis(package = NULL)
Arguments
package |
Package to inspect |
name |
Name of the package folder to |
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
-
plumb_api()
:plumb()
s a package's Plumber API. Returns aPlumber
router object -
available_apis()
: Displays all available package Plumber APIs. Returns adata.frame
ofpackage
,name
, andsource_directory
information.