سؤال

When I write the following command it tells me:

> getDoParWorkers()
[1] 1

I want to assign 3 cores to my worker. How's that possible in RStudio?

هل كانت مفيدة؟

المحلول

By default, R just assigns 1 worker to your task. You have to use the following command to register more than 1 worker:

> registerDoMC(3)
> getDoParWorkers()
[1] 3

I used these commands from this manual.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top