Learn R Programming

plumber (version 1.2.2)

PlumberStatic: Static file router

Description

Static file router

Static file router

Arguments

Super classes

plumber::Hookable -> plumber::Plumber -> PlumberStatic

Methods

Inherited methods


Method new()

Create a new PlumberStatic router

Usage

PlumberStatic$new(direc, options)

Arguments

direc

a path to an asset directory.

options

options to be evaluated in the PlumberStatic router environment

Returns

A new PlumberStatic router


Method print()

Print representation of PlumberStatic() router.

Usage

PlumberStatic$print(prefix = "", topLevel = TRUE, ...)

Arguments

prefix

a character string. Prefix to append to representation.

topLevel

a logical value. When method executed on top level router, set to TRUE.

...

additional arguments for recursive calls

Returns

A terminal friendly representation of a PlumberStatic() router.


Method clone()

The objects of this class are cloneable with this method.

Usage

PlumberStatic$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

Creates a router that is backed by a directory of files on disk.