mlr-org / parallelMap

R package to interface some popular parallelization backends with a unified interface
https://parallelmap.mlr-org.com
Other
57 stars 14 forks source link

parallelExport() doesn't work properly without explicit parallelStart() #17

Closed larskotthoff closed 10 years ago

larskotthoff commented 10 years ago

In my configuration, I have parallelMap.default.autostart = TRUE. This does not work properly in conjunction with parallelExport() -- I'm getting messages about the specified objects being exported and imported again, but subsequent code fails saying that those objects are undefined.

If I add an explicit parallelStart() before doing the exports, everything works fine.

berndbischl commented 10 years ago

Thx for the report and sorry for taking so long.

I have decided to remove the autostart option. It was not really possible to have stable and bug free package with this, when I offer nice things as parallelLibrary, parallelExport and so on. (there are simply too many places where you must potentially "autostart")

I have decided that the user does not lose so much when I remove this option, and he has to write 1 line more, but gains a lot in stability and usability.