/mappp

map in parallel with progress

Primary LanguageROtherNOASSERTION

mappp

map in parallel with progress

CRAN status R-CMD-check

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() which means that parallel computation is not available on Windows platforms.

Installation

mappp is hosted on CRAN and can be installed with:

install.packages("mappp")