Learn R Programming

shiny.router (version 0.1.1)

route: Create single route configuration.

Description

Create single route configuration.

Usage

route(path, ui, server = NA)

Arguments

path

Website route.

ui

Valid Shiny user interface.

server

Function that is called as callback on server side

Value

A route configuration.

Examples

Run this code
# NOT RUN {
route("/", shiny::tags$div(shiny::tags$span("Hello world")))

route("/main", div(h1("Main page"), p("Lorem ipsum.")))
# }

Run the code above in your browser using DataLab