ParallelLogger
ParallelLogger is part of the OHDSI Methods Library.
Introduction
An R package with tools to be used in the other OHDSI R packages
Features
- Functions for parallel computation
- Functions for logging
- Functions used for automating analyses
Examples
# Run a function in parallel:
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")
Technology
ParallelLogger is an R package.
System Requirements
Requires R (version 3.1.0 or higher)
Getting Started
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")
User Documentation
- Vignette: Logging using ParallelLogger
- Vignette: Parallel execution using ParallelLogger
- Package manual: ParallelLogger.pdf
Support
- Developer questions/comments/feedback: OHDSI Forum
- We use the GitHub issue tracker for all bugs/issues/enhancements
License
ParallelLogger is licensed under Apache License 2.0
Development
ParallelLogger is being developed in R Studio.
Development status
Ready for use
Acknowledgements
- This project is supported in part through the National Science Foundation grant IIS 1251151.