ASM_save_state | R Documentation |
Called from download handler and used to write a saved state value if that is null
ASM_save_state(state, session, file_path, pll = NULL)
state |
ASM state from |
session |
Shiny session variable |
file_path |
File path to write zipped state |
pll |
Preload list of the format generated by |
This function only writes the state and returns a list with the following elements:
isgood: Boolean indicating the exit status of the function.
msgs: Messages to be passed back to the user.
# Within shiny the session variable will exist
# this creates examples here for testing purposes:
sess_res = ASM_test_mksession()
session = sess_res$session
state = sess_res$state
ssf = tempfile(fileext=".zip")
ss_res =
ASM_save_state(state, session,
file_path = ssf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.