Write the reactlog to a file. If a session token is provided, all reactive interactions will be subsetted to either the global session or the session provided.

reactlog_write(log, file = stdout(), session_token = NULL)

Arguments

log

produced by shiny to be written

file

location of output file. If a NULL file is given, the json representation is return.

session_token

Session token identifier to be used when subsetting the complete reactlog

See also

reactlog_read() to read the file back in.

Examples

if (FALSE) { # \dontrun{
reactlog_write(shiny::reactlog(), "reactlog.json")
log <- reactlog_read("reactlog.json")
reactlog_show(log)
} # }