Learn R Programming

shiny.router (version 0.1.1)

make_router: Creates router. Returned callback needs to be called within Shiny server code.

Description

Creates router. Returned callback needs to be called within Shiny server code.

Usage

make_router(default, ...)

Arguments

default

Main route to which all invalid routes should redirect.

...

All other routes defined with shiny.router::route function.

Value

Shiny router callback that should be run in server code with Shiny input and output lists.

Examples

Run this code
# NOT RUN {
router <- make_router(
  route("/", root_page),
  route("/other", other_page)
)
# }

Run the code above in your browser using DataLab