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
- Host: GitHub
- URL: https://github.com/cole-brokamp/mappp
- Owner: cole-brokamp
- License: other
- Created: 2020-02-08T13:16:22.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T13:43:37.000Z (about 3 years ago)
- Last Synced: 2024-08-13T07:14:13.348Z (9 months ago)
- Language: R
- Size: 22.5 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - cole-brokamp/mappp - map in parallel with progress (R)
README
# mappp
> **map** in **p**arallel with **p**rogress
[](https://CRAN.R-project.org/package=mappp)
[](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 folderPlease 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")
```