| get_keys | R Documentation |
A page declared with a parameterised href (e.g. "/who/:id") exposes the
values matched in the URL through get_keys(). Call it with no argument
inside a page server, and pass it the request inside a page ui.
get_keys(x = shiny::getDefaultReactiveDomain())
x |
A shiny session, or the |
A named list of the values matched in the page href, or NULL
outside of a brochure page.
library(shiny)
page(
href = "/who/:id",
ui = function(request) {
h1(get_keys(request)$id)
},
server = function(input, output, session) {
print(get_keys())
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.