Skip to content

Making clusters for parallelized functions #111

@hikari-murayama

Description

@hikari-murayama

Describe the bug
It seems to be a known issue that parallel::makeCluster "freezes" for certain versions of RStudio (rstudio/rstudio#6692). With some eiCompare functions involving parallelization options, this will cause issues for users who are using certain versions of RStudio.

To Reproduce
Steps and code to reproduce the behavior:

  1. Run ei_iter on RStudio (could be 1.3.944, 1.2.5042, or other) locally with R 4.X
  2. Load Corona data from Package
  3. Run ei_iter with par_compute == TRUE

Expected behavior
An Error should pop up that says Error in makePSOCKcluster and Cluster setup failed

Screenshots
image

Environment information:

  • eiCompare version: 3.0
  • Mac (Catalina)
  • R Studio 1.3.944

Additional context
It seems like this can resolved either by

  1. Installing a Preview version of RStudio
  2. Setting a time out parameter when we call makeCluster
  3. Installing July release of R: Rstudio v1.3.1056

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions