make_router | R Documentation |
Returned callback needs to be called within Shiny server code.
make_router(default, ..., page_404 = page404())
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. |
Shiny router callback that should be run in server code with Shiny input and output lists.
## Not run:
router <- make_router(
route("/", root_page),
route("/other", other_page),
page_404 = page404(
message404 = "Please check if you passed correct bookmark name!")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.