Skip to content

Commit

Permalink
Filter out Shinylogs event .clientdata_output_...
Browse files Browse the repository at this point in the history
  • Loading branch information
phgrosjean committed Sep 20, 2023
1 parent 20b5ceb commit 0825e8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

- More robust checking of password.

- Do not drop Shinylogs records dir, only eliminate each file when it is processed. This allows for recording of several simultaneous sessions.

- Do not record Shinylogs events whose label starts with ".clientdata_output_".

- In `launch_shiny()` and `webshot_shiny()`, default width is increased from 780 to 790, otherwise `shiny::sidepanelLayout()`wrap the side panel on the top of the Shiny app.

# learnitdown 1.5.4
Expand Down
4 changes: 4 additions & 0 deletions R/learnitdown_shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ read_shinylogs <- function(file, version = "0",
return(res)
}

# Filter out .clientdata_output_... labels we don't want to keep
keep_event <- substring(res$label, 1L, 19L) != ".clientdata_output_"
res <- res[keep_event, ]

# Rework submit and quit events
is_submit <- res$label == "learnitdown_submit_"
if (any(is_submit)) {
Expand Down

0 comments on commit 0825e8e

Please sign in to comment.