2

I'm currently parallellising by using the future package as follows:

plan(multisession, gc = TRUE)
standardised_addresses1 <- future_lapply(1:20000, function(x) x*x) 

The problem is that it uses all the CPUs on the server. I would like to limit the number of CPUs used by setting a parameter like: workers = 18

1 Answer 1

4

You can use plan(multisession, gc = TRUE, workers = 18).

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.