An R package with tools to be used in the other OHDSI R packages
- Functions for parallel computation
- Functions for logging
- Functions used for automating analyses
# 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")
ParallelLogger is an R package.
Requires R (version 3.1.0 or higher)
None
- In R, use the following commands to download and install ParallelLogger:
install.packages("devtools")
library(devtools)
install_github("ohdsi/ParallelLogger")
- Vignette: Logging using ParallelLogger
- Vignette: Parallel execution using ParallelLogger
- Package manual: ParallelLogger.pdf
- Developer questions/comments/feedback: OHDSI Forum
- We use the GitHub issue tracker for all bugs/issues/enhancements
ParallelLogger is licensed under Apache License 2.0
ParallelLogger is being developed in R Studio.
Ready for use
- This project is supported in part through the National Science Foundation grant IIS 1251151.