Convert Browser Location Parameters to Shiny Input and Output Values
Source:R/locationParms.R
link2input.Rd
Parse the browser link and retrieve parameters for inclusion as values in inputs or outputs
Arguments
- ...
List of Shiny input IDs to match with window location parameters
- inputtype
Type of inputs being included
Note
a great example of how to use this functionality can be found in https://cran.r-project.org/web/packages/shinyStorePlus/vignettes/shinystoreplus_v08.html
Examples
if (interactive()) {
# within the server function
server <- function(input, output, session) {
link2input(
cd323 = "name",
datasetbin = "data",
numberid = "num"
)
link2input(
outputid = "outt",
inputtype = "output"
)
}
}