Static file router
Static file router
Static file router
Creates a router that is backed by a directory of files on disk.
plumber::Hookable
-> plumber::Plumber
-> PlumberStatic
new()
Create a new PlumberStatic
router
PlumberStatic$new(direc, options)
direc
: a path to an asset directory.
options
: options to be evaluated in the PlumberStatic
router environment
A new PlumberStatic
router
print()
Print representation of PlumberStatic()
router.
PlumberStatic$print(prefix = "", topLevel = TRUE, ...)
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
A terminal friendly representation of a PlumberStatic()
router.
clone()
The objects of this class are cloneable with this method.
PlumberStatic$clone(deep = FALSE)
deep
: Whether to make a deep clone.
Useful links