read_inputs: Read a sequence of Shiny Inputs

View source: R/shiny_inputs.R

read_inputsR Documentation

Read a sequence of Shiny Inputs

Description

Read a sequence of Shiny Inputs

Usage

read_inputs(
  inputid = NULL,
  nullarg = NA,
  type = c("chr", "dbl", "lgl", "int"),
  .env = shiny::getDefaultReactiveDomain()
)

Arguments

inputid

a vector of inputids to read

nullarg

the value to return if the input value is NULL i.e. missing

type

one of ('chr','dbl','lgl','int') - specifies type of atomic vector to return

.env

the environment to look for the input - defaults to the default reactive domain

Value

a vector of values

Examples

if(interactive()){
  read_inputs(inputid = c("select_1", "select_2"), nullarg = NA, type = "chr")
}

tanho63/tantastic documentation built on May 31, 2024, 9 p.m.