Learn R Programming

shiny.router (version 0.3.1)

make_router: [Deprecated] Creates router.

Description

Returned callback needs to be called within Shiny server code.

Usage

make_router(default, ..., page_404 = page404())

Value

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

Arguments

default

Main route to which all invalid routes should redirect.

...

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

page_404

Styling of page when wrong bookmark is open. See page404.

Examples

Run this code
if (FALSE) {
router <- make_router(
  route("/", root_page),
  route("/other", other_page),
  page_404 = page404(
    message404 = "Please check if you passed correct bookmark name!")
)
}

Run the code above in your browser using DataLab