summariseLogFile {omopgenerics} | R Documentation |
Summarise and extract the information of a log file into a
summarised_result
object.
Description
Summarise and extract the information of a log file into a
summarised_result
object.
Usage
summariseLogFile(
logFile = getOption("omopgenerics.logFile"),
cdmName = "unknown"
)
Arguments
logFile |
File path to the log file to summarise. Create a logFile with
|
cdmName |
Name of the cdm for the |
Value
A summarise_result
with the information of the log file.
Examples
library(dplyr)
logFile <- tempfile(pattern = "log_{date}_{time}", fileext = ".txt")
createLogFile(logFile = logFile)
logMessage("Starting analysis")
1 + 1
logMessage("Analysis finished")
res <- summariseLogFile()
glimpse(res)
tidy(res)
[Package omopgenerics version 1.2.0 Index]