greta-dev / greta

simple and scalable statistical modelling in R
https://greta-stats.org
Other
527 stars 63 forks source link

Windows currently has issues with using future for `plan(mutliprocess)` or `plan(multicore)` #478

Closed njtierney closed 2 years ago

njtierney commented 2 years ago

https://github.com/greta-dev/greta/runs/4517555322?check_suite_focus=true

This has been verified locally on a windows machine by Aarathy.

Need to investigate!

njtierney commented 2 years ago

OK so reading into the error messages more, and reading what future docs say...

The error message on windows is:

Error in makeForkCluster(nnodes = spec, ...): fork clusters are not supported on Windows

Which happens with this code in test_future.R

cl <- parallel::makeCluster(2L, type = "FORK")

That is what is causing the first error, so I can skip that test on windows...let's see how that goes.