talira

future.apply

Parallel versions of R's apply functions, built on future

open sourceGPL-2.0-or-laterfree

future.apply provides drop-in parallel versions of base R's apply family (future_lapply(), future_sapply(), future_mapply(), future_Map(), future_replicate() and the rest) that run on any backend future (R) supports, from parallel processes on the local machine to a distributed compute cluster. They behave like the base functions, with the same pros and cons, plus parallel processing. It's by Henrik Bengtsson.

Problems it solves

  • parallelise lapply in R
  • run an R apply loop on a cluster
  • speed up sapply with multiple cores in R

Features

  • future_ versions of apply, lapply, sapply, mapply, Map, tapply, vapply and replicate
  • any future backend: local parallel or cluster
  • same semantics as base R

Alternatives

The same job

These do what future.apply does.

  1. future (R) Unified parallel and distributed processing in R
  2. futurize Parallelize R map-reduce calls by piping them into futurize()
  3. furrr Run purrr's mapping functions in parallel with futures in R

Compare future.apply with the top 3