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.

purge_eventlog(file = "events.log", min_build = NULL)

Arguments

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.

Examples

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)
#> Nothing to do. Build version found at the beginning of the eventlog file: 139
#> NULL