Multithreading issues in Positron (parallel with multicores issues)

Hi Positron team,
I run a latent class model with discrete choice experiment data using apollo package (R) using positron. However, it gave me the error message as "A piece of data could not be loaded from disk". I copied the same code and ran it on Rstudio, it ran just fine without any issue. Could you please help me to fix this? I don't want to comeback to Rstudio but not able to use multi-cores for running the model is kinda big deal to me.

Cheers,
Alex

1 Like

It is true that multi-core processing does not work well in Positron's R kernel. See here for some more details on this: Problem with forked (multicore) code in ark · Issue #3817 · posit-dev/positron · GitHub

However, this error message doesn't look like it's related to the multi-core problems with Positron and may be something else. A workaround for multi-core in Positron is to run R in Positron's Terminal instead of starting an R console; does it work there?

1 Like

Thanks Jonathan for your help. I think I have the similar issue with github post on multicores. I'll try the terminal and see what happens.


Cheers,
Alex

1 Like