Exercise

Reproducibility (I)

We ran the following code in your workspace:

library(doParallel)
cl.sock <- makeCluster(2, type = "PSOCK")
registerDoParallel(cl.sock)

Is the following code reproducible and why?

set.seed(100)
foreach (i = 1:2) %dopar% rnorm(3)

Instructions

50 XP

Possible answers