Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making clusters for parallelized functions #111

Open
hikari-murayama opened this issue Aug 22, 2020 · 1 comment · May be fixed by #122
Open

Making clusters for parallelized functions #111

hikari-murayama opened this issue Aug 22, 2020 · 1 comment · May be fixed by #122
Assignees

Comments

@hikari-murayama
Copy link
Collaborator

hikari-murayama commented Aug 22, 2020

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
@hikari-murayama
Copy link
Collaborator Author

When running eiCompare, the error will read along the lines of "task 2 failed".

In that event please update the newest version of Rstudio, which as of this comment is, 1.4.1103.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant