Re: [R-pkg-devel] [External] Guidelines on use of snow-style clusters in R packages?

2020-06-13 Thread Ivan Krylov
On Wed, 3 Jun 2020 08:54:56 -0500 (CDT) luke-tier...@uiowa.edu wrote: > If you use [a cluster] passed to you it would be best to leave > it in the state you found it at least as far as the search path and > global environment are concerned. Thanks for this advice! I guess that clusterExport() is

Re: [R-pkg-devel] [External] Guidelines on use of snow-style clusters in R packages?

2020-06-03 Thread luke-tierney
The basic principle I would follow is to make sure your code only goes parallel with explicit permission from the end user. One way to do that is accept a cluster from the caller; another is to create and shut down your won cluster if a global option is set (via options() or a mechanism of your ow