View source: R/locationParms.R
link2input | R Documentation |
Parse the browser link and retrieve parameters for inclusion as values in inputs or outputs
link2input(..., inputtype = "default", session = getDefaultReactiveDomain())
... |
List of Shiny input IDs to match with window location parameters |
inputtype |
Type of inputs being included |
session |
Shiny session object |
Setting of the Shiny inputs to the values of the parameters in the browser link
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
if (interactive()) {
# within the server function
server <- function(input, output, session) {
link2input(
cd323 = "name",
datasetbin = "data",
numberid = "num"
)
link2input(
outputid = "outt",
inputtype = "output"
)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.