Support for parallel computation with progress bar, and option to stop or proceed on errors. Also provides logging to console and disk, and the logging persists in the parallel threads. Additional functions support function call automation with delayed execution (e.g. for executing functions in parallel).
ParallelLogger is part of the OHDSI Methods Library.
An R package with tools to be used in the other OHDSI R packages
fun <- function(x) { return (x^2)} cluster <- makeCluster(numberOfThreads = 3)result <- clusterApply(cluster, 1:10, fun)stopCluster(cluster) # Create a file logger:addDefaultFileLogger("log.txt")logTrace("Hello world")
ParallelLogger is an R package.
Requires R (version 3.1.0 or higher)
In R, to install the latest stable version, install from CRAN:
install.packages("ParallelLogger")
To install the latest development version, install from GitHub:
install.packages("devtools")devtools::install_github("ohdsi/ParallelLogger")
ParallelLogger is licensed under Apache License 2.0
ParallelLogger is being developed in R Studio.
Ready for use
Changes:
Changes:
When the folder containing the log file is deleted while logging, a warning is thrown (instead of an error), and the file appender is automatically deleted.
The Shiny app now ignores malformed lines in the log file (instead of throwing an error).
Changes: initial submission to CRAN