R Shiny at IQSS
  • Introduction
  • Getting started
    • Determining your resource requirements
    • Applying for an account
  • Deploying
    • Setup your environment
    • Deploying an example Shiny app
    • Bootstrapping a new Shiny app or migrating a pre-existing Shiny application
    • Developing locally with RStudio
    • Developing locally using Docker
    • Speeding up deployments with Packrat
  • Configuration
    • Setting up a custom domain for your Shiny app
    • Installing additional system-level packages
    • Limiting the number of R Threads
  • Best Practices
    • File storage
    • Using promises
    • Adding routes
  • Troubleshooting
    • Resolving Application Error screen
    • Viewing app logs
    • Viewing resource consumption
    • Configuring Shiny session auto-reconnect
    • Getting support
Powered by GitBook
On this page
  1. Best Practices

Adding routes

PreviousUsing promisesNextTroubleshooting

Last updated 5 years ago

In web applications, a route is the relative path after the hostname.

In https://www.example.com/a/b/c, the route is /a/b/c.

In https://www.example.com/a/b, the route is /a/b.

R can display different content or widgets depending on the URL path when using the package, installable via cran.

packages.install("shiny-router")
packrat::snapshot()
shiny-router