get_url_parameters {periscope2} | R Documentation |
Parse application passed URL parameters
Description
This function returns any url parameters passed to the application as a named list. Keep in mind url parameters are always user-session scoped
Usage
get_url_parameters(session)
Arguments
session |
shiny session object |
Value
named list of url parameters and values. List may be empty if no URL parameters were passed when the application instance was launched
Shiny Usage
Call this function from program/server_local.R
or any other server file
See Also
periscope2:set_app_parameters()
periscope2:add_ui_left_sidebar()
periscope2:add_ui_right_sidebar()
Examples
library(shiny)
library(periscope2)
# Display application info
observeEvent(input$app_info, {
url_params <- get_url_parameters(session)
show_alert(html = TRUE,
showCloseButton = FALSE,
animation = "slide-from-top",
closeOnClickOutside = TRUE,
text = url_params[["passed_paramter"]],
title = "alert title")
})
[Package periscope2 version 0.2.3 Index]