⚠️There's a newer version (3.3.0) of this package. Take me there.

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

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.

Copy Link

Version

Down Chevron

Install

install.packages('ParallelLogger')

Monthly Downloads

2,089

Version

1.1.1

License

Apache License 2.0

Issues

Pull Requests

Stars

Forks

Last Published

October 30th, 2019

Functions in ParallelLogger (1.1.1)