Error: could not find function "makeNode" (was: How to plan multisession with workers on windows?) #603
-
The following call to plan on a windows machine runs in an error message: future::plan("multisession", worker = 4)
How can the workers be defined using "multisession" on windows? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Can you check the notes that wrote @HenrikBengtsson here:
Is possible see you session info? Because, I replicated your code on my pc and it works fine. Erick |
Beta Was this translation helpful? Give feedback.
-
This (i.e. I would first retry it without all those other packages loaded, i.e. try in a fresh R session without loading other things. I don't think that will make a difference, but whenever troubleshooting something weird, you always want to do so in a fresh, vanilla R session to rule out other things. Second, immediately after you get the error, call |
Beta Was this translation helpful? Give feedback.
-
Studying your > future::plan("multisession", worker = 2)
Error in makeNode(workers[[ii]], port = port, ..., rank = ii, action = "options", :
could not find function "makeNode" I recommend that you set > options(warnPartialMatchArgs = TRUE)
> future::plan("multisession", worker = 2)
Error in makeNode(workers[[ii]], port = port, ..., rank = ii, action = "options", :
could not find function "makeNode"
In addition: Warning message:
In makeCluster(workers, ...) :
partial argument match of 'worker' to 'workers' |
Beta Was this translation helpful? Give feedback.
Studying your
traceback()
in detail, I see that you specify argumentworker
(singular) instead ofworkers
(plural). That's the problem. I can reproduce the error when using the singular form:I recommend that you set
options(warnPartialMatchArgs = TRUE)
in your ~/.Rprofile to get a warning about these type of mistakes, e.g.