Description Usage Arguments Value Examples
Record Shiny events on a LOG file
1 2 | shiny_events_to_log(app = basename(getwd()),
filename = "shiny-events.log")
|
app |
The name of the app. Defaults to the name of the script's containing folder. |
filename |
CSV file name to use. Defaults to "shiny-events.csv" |
An environment variable containing: a GUID, the name of the app, entry() function and event() function.
1 2 3 4 5 6 | file_name <- tempfile(fileext = ".csv")
tracker <- shiny_events_to_log("example-app", file_name)
tracker$event("slider", 1)
# event() function allows the log type to be modified
tracker$event("records-returned", 0, type = "WARN")
readLines(file_name)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.