Description Usage Arguments Value Examples
Record Shiny events on a CSV file
1 2 | shiny_events_to_csv(app = basename(getwd()),
filename = "shiny-events.csv")
|
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 7 8 | file_name <- tempfile(fileext = ".csv")
tracker <- shiny_events_to_csv("example-app", file_name)
tracker$event("slider", 1)
read.csv(
file_name,
header = FALSE,
col.names = c("guid", "app", "activity", "value", "datetime")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.