Support for Parallel Computation, Logging, and Function Automation

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

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

  • Functions for parallel computation
  • Functions for logging
  • Functions used for automating analyses

Examples

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

  • This project is supported in part through the National Science Foundation grant IIS 1251151.

News

ParallelLogger 1.1.0

Changes:

  1. Added e-mail appender and layout.

ParallelLogger 1.0.1

Changes:

  1. 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.

  2. The Shiny app now ignores malformed lines in the log file (instead of throwing an error).

ParallelLogger 1.0.0

Changes: initial submission to CRAN

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("ParallelLogger")

1.1.0 by Martijn Schuemie, 7 months ago


https://ohdsi.github.io/ParallelLogger, https://github.com/OHDSI/ParallelLogger


Report a bug at https://github.com/OHDSI/ParallelLogger/issues


Browse source code at https://github.com/cran/ParallelLogger


Authors: Martijn Schuemie [aut, cre] , Marc Suchard [aut] , Observational Health Data Science and Informatics [cph]


Documentation:   PDF Manual  


Apache License 2.0 license


Imports snow, XML, jsonlite, methods, utils

Suggests mailR, testthat, shiny, DT, knitr, rmarkdown


See at CRAN