Learn R Programming

shinyStorePlus (version 1.5)

link2input: Convert Browser Location Parameters to Shiny Input and Output Values

Description

Parse the browser link and retrieve parameters for inclusion as values in inputs or outputs

Usage

link2input(..., inputtype = "default", session = getDefaultReactiveDomain())

Value

Setting of the Shiny inputs to the values of the parameters in the browser link

Arguments

...

List of Shiny input IDs to match with window location parameters

inputtype

Type of inputs being included

session

Shiny session object

Examples

Run this code
if (interactive()) {
  # within the server function
  server <- function(input, output, session) {
    link2input(
      cd323 = "name",
      datasetbin = "data",
      numberid = "num"
    )

    link2input(
      outputid = "outt",
      inputtype = "output"
    )
  }
}

Run the code above in your browser using DataLab