An open API service indexing awesome lists of open source software.

https://github.com/cole-brokamp/mappp

map in parallel with progress
https://github.com/cole-brokamp/mappp

Last synced: 5 months ago
JSON representation

map in parallel with progress

Awesome Lists containing this project

README

        

# mappp

> **map** in **p**arallel with **p**rogress

[![CRAN status](https://www.r-pkg.org/badges/version/mappp)](https://CRAN.R-project.org/package=mappp)
[![R-CMD-check](https://github.com/cole-brokamp/mappp/workflows/R-CMD-check/badge.svg)](https://github.com/cole-brokamp/mappp/actions)

The goal of mappp is to provide a simple implementation of `purrr::map` or `base::lapply` that provides enhanced features like parallel computation, progress bars, error handling, and result caching.

- **progress**: `mappp()` will always report its progress
- **error handling**: by default, if `mappp()` encounters an error, it will return `NA` instead of interrupting the entire calculation
- **parallel**: if `parallel = TRUE`, `mappp()` will attempt to calculate in parallel by using the maximum number of available cores
- **cache**: if `cache = TRUE`, `mappp()` will memoise the results in a local cache folder

Please note that this package relies on forking via [`parallel::mclapply()`](https://stat.ethz.ch/R-manual/R-devel/library/parallel/html/mclapply.html) which means that parallel computation is not available on Windows platforms.

## Installation

mappp is hosted on CRAN and can be installed with:

```r
install.packages("mappp")
```