register.page: register.page

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/registry.R

Description

Register a page

Usage

1
register.page(registry, page.name, page, overwrite = FALSE)

Arguments

registry

AnalysisPageRegistry object

page.name

Character. Name of the page to register

page

AnalysisPage or function. If a function is supplied instead of an AnalysisPage object then it will be coerced into an AnalysisPage object calling new.analysis.page.

overwrite

Logical. If FALSE (default) then throw and error if a page is already registered under that name. If TRUE then just warn.

Details

Register a page

Value

void

Author(s)

Brad Friedman

See Also

new.registry, has.page, get.page, pages, new.analysis.page

Examples

1
2
3
4
5
6
# Make a new registry
registry <- new.registry()

# Now register it under the name "sine" (in the "example" registry)
# and keep the modified registry.
registry <- register.page(registry, "sine", AnalysisPageServer:::sine.handler)

AnalysisPageServer documentation built on April 28, 2020, 6:32 p.m.