FM_fetch_app_code | R Documentation |
Takes the current state of the app and builds a script to reproduce the analysis within the app.
FM_fetch_app_code(session, state, mod_ids)
session |
Shiny session variable |
state |
module state after yaml read |
mod_ids |
Vector of module IDs and order they are needed (used for code generation). |
list with the following elements:
isgood: Boolean indicating the whether code generation was
successful
(TRUE
)
msgs: Any messages generated
code: Code to regenerate the app
# We need a Shiny session object to use this function:
sess_res = DW_test_mksession()
session = sess_res$session
state = sess_res$state
app_code = FM_fetch_app_code(session = session,
state = state,
mod_ids = c("UD", "DW"))
cat(app_code$code)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.