Skip to content

Error with future::plan(future::cluster, workers = c('rey', 'r2d2')) #617

Discussion options

You must be logged in to vote

Using

future::plan(future::cluster, workers = c('rey', 'r2d2'), homogeneous = FALSE)

should work.

Explanation

When using

future::plan(future::cluster, workers = c('rey', 'r2d2'))

the parallelly packages is used under the hood. It basically does the following:

cl <- parallelly::makeClusterPSOCK(c('rey', 'r2d2'))
future::plan(future::cluster, workers = cl)

Comment: If you call that, you'll get the same error in the first step.

Now, the default is homogeneous = NULL, which will make makeClusterPSOCK() look at each workers element to infer whether if that needs homogeneous = TRUE or homogeneous = FALSE. In your case, they end becoming homogeneous = TRUE, which you don't want, because your wor…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ramiromagno
Comment options

@HenrikBengtsson
Comment options

@ramiromagno
Comment options

@HenrikBengtsson
Comment options

@ramiromagno
Comment options

Answer selected by ramiromagno
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #616 on May 05, 2022 16:22.