map in parallel with progress
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 returnNA
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()
which means that parallel computation is not available on Windows platforms.
mappp is hosted on CRAN and can be installed with:
install.packages("mappp")