This would reduce the number of explicit dependencies (by swapping out foreach, snow and doSNOW) with furrr. future would be installed as a dependency to furrr, and could be listed as suggests, since it is not strictly necessary for the package to work.
Another benefit would be reducing the number of arguments to jst_import_zip, and it gives users more control about how the computation is actually distributed.
Internally, we would simply use future_map instead of the whole machinery of doSnow and foreach, etc.
The API for the user would look like this:
This would reduce the number of explicit dependencies (by swapping out foreach, snow and doSNOW) with furrr.
future
would be installed as a dependency to furrr, and could be listed assuggests
, since it is not strictly necessary for the package to work.Another benefit would be reducing the number of arguments to
jst_import_zip
, and it gives users more control about how the computation is actually distributed.Internally, we would simply use
future_map
instead of the whole machinery ofdoSnow
andforeach
, etc.