Description Usage Arguments Examples
View source: R/purge_eventlog.R
purge_eventlog
removes obsolete event records based
on selected criteria.
Please be careful. If you do not back up your eventlog, purging
operation can be irreversible.
1 | purge_eventlog(file = "events.log", min_build = NULL)
|
file |
A character string. Path to a file log. |
min_build |
An integer. Minimum build version of the app that should be kept in the eventlog after purging. |
1 2 3 4 5 6 7 8 9 | demo_filelog <- system.file("shiny", "demoapp/events.log",
package = "shinyEventLogger")
temp_file <- tempfile()
file_conn <- base::file(temp_file)
writeLines(readLines(con = demo_filelog), file_conn)
close(file_conn)
purge_eventlog(file = temp_file, min_build = 23)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.