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

Export make_rng_seeds()? #59

Open mllg opened 4 years ago

mllg commented 4 years ago

Would you consider exporting make_rng_seeds() so that we can use it in mlr3?

HenrikBengtsson commented 4 years ago

Some quick comments/questions:

  1. How soon do you want it?

  2. It's on my todo list to extract several of the internal utility functions an export them in a 'future.chunks' package. This is then meant to support higher-level, map-reduce packages such as future.apply, doFuture, furrr, ... There are some design decisions to be made before future.chunks can be made available.

  3. Until future.chunks is available, you're welcome to use make_rng_seeds() from future.apply in {{mlr3}} via private, stealth imports hacks - I can make a note about this dependency. If you do, I'd like to ask you to be prepared to move to make use future.chunks when it's available.

What do you think?

mllg commented 4 years ago

It is not urgent, I can use getFromNamespace() until someone from CRAN starts complaining. Happy to switch to future.chunks as soon as it is available.