ParallelLogger

Build Status codecov.io CRAN_Status_Badge CRAN_Status_Badge

ParallelLogger is part of the OHDSI Methods Library.

Introduction

An R package with tools to be used in the other OHDSI R packages

Features

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

Support

License

ParallelLogger is licensed under Apache License 2.0

Development

ParallelLogger is being developed in R Studio.

Development status

Ready for use

Acknowledgements