# NOT RUN {
if (requireNamespace("Rmpi") && requireNamespace("snow")) {
cl <- makeClusterMPI(2, autoStop = TRUE)
print(cl)
y <- parLapply(cl, X = 1:3, fun = sqrt)
print(y)
rm(list = "cl")
}
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab