View source: R/shiny-inputbindings.R
add_to_session | R Documentation |
If key is missing, it'll be created, otherwise ignored or overwritten.
add_to_session(
session,
key = "rave_id",
val = paste(sample(c(letters, LETTERS, 0:9), 20), collapse = ""),
override = FALSE
)
session |
'Shiny' session |
key |
character, key to store |
val |
value to store |
override |
if key exists, whether to overwrite its value |
If session is shiny session, returns current value stored in
session, otherwise returns NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.