add_to_session: Store/Get key-value pairs in 'shiny' session

View source: R/shiny-inputbindings.R

add_to_sessionR Documentation

Store/Get key-value pairs in 'shiny' session

Description

If key is missing, it'll be created, otherwise ignored or overwritten.

Usage

add_to_session(
  session,
  key = "rave_id",
  val = paste(sample(c(letters, LETTERS, 0:9), 20), collapse = ""),
  override = FALSE
)

Arguments

session

'Shiny' session

key

character, key to store

val

value to store

override

if key exists, whether to overwrite its value

Value

If session is shiny session, returns current value stored in session, otherwise returns NULL


dipsaus documentation built on June 27, 2024, 5:10 p.m.