Learn R Programming

shiny.router (version 0.3.1)

route: Create single route configuration.

Description

Create single route configuration.

Usage

route(path, ui, server = NA)

Value

A route configuration.

Arguments

path

Website route.

ui

Valid Shiny user interface.

server

Function that is called as callback on server side [deprecated]

Examples

Run this code
if (FALSE) {
route("/", shiny::tags$div(shiny::tags$span("Hello world")))

route("main", shiny::tags$div(h1("Main page"), p("Lorem ipsum.")))
}

Run the code above in your browser using DataLab