Given a path that contains shinylogs events in .rds format, read these
events and transfer them into a MongoDB database.
record_shiny(
path,
url,
db,
collection = "events",
version = "0",
log.errors = TRUE,
log.outputs = FALSE,
drop.dir = FALSE,
debug = Sys.getenv("LEARNITDOWN_DEBUG", 0) != 0
)The directory that contains shinylogs .rds files
The mongodb url.
The database name.
The name of the collection where to insert the documents.
The version of the running Shiny application.
Do we record errors too?
Do we record outputs too (note that results are recorded with inputs)?
If TRUE and path is empty at the end of the process, drop
the logs directory.
Do we debug the events recording by issuing extra messages? By
Default the value in the environment variable LEARNITDOWN_DEBUG is used and
debugging will be done if this value is different to 0.
TRUEif there where log files to export, FALSE otherwise.