futureverse / future.apply

:rocket: R package: future.apply - Apply Function to Elements in Parallel using Futures
https://future.apply.futureverse.org
211 stars 16 forks source link

Add future_pvec() analogue to parallel::pvec() #96

Open HenrikBengtsson opened 2 years ago

HenrikBengtsson commented 2 years ago

Not sure how I missed parallel::pvec(). Should add future_pvec() to future.apply.

HenrikBengtsson commented 2 years ago

Oh well, I "missed" it because pvec() is from them parallel package and not part of the base R map-reduce family.

HenrikBengtsson commented 2 years ago

So, I did implement this in commit 6f3bbc23. However, because (i) it's not a base R map-reduce function, and because (ii) parallel::pvec() is rather low-level and does not guarantee consistent results (e.g. still returns if a forked child process crashes), I'll hold back adding future_pvec() to this package.