register.page {AnalysisPageServer} | R Documentation

## register.page

### Description

Register a page

### Usage

    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

    # 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)

[Package AnalysisPageServer version 1.20.0 Index]