Skip to content

Editing the log

Joe Marlo edited this page Jul 22, 2022 · 2 revisions

Editing the log

The log is created by the individual modules appending lines during specific actions. For example, when data is uploaded within the upload module, a few lines are added to the log object:

log_event <- paste0('Uploaded ', input$analysis_upload_data_upload$name)
store$log <- append(store$log, log_event)

The log is stored within the store object making it available within each module.

Adding a new log event

To add additional items to the log, append your text when an action triggered, often done with an observeEvent():

observeEvent(input$my_event, {
  my_log_text <- 'A new log event'
  store$log <- append(store$log, my_log_text)
}
Clone this wiki locally