Skip to content

Commit

Permalink
Merge pull request #42 from schuettl/patch-1
Browse files Browse the repository at this point in the history
Tiny fixes in Vignette code
  • Loading branch information
gvegayon authored Oct 25, 2023
2 parents 503b810 + a548353 commit df891c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vignettes/getting-started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ cl <- makeSlurmCluster(100)

# Computing the mean of a 100 random uniforms within each worker
# for this we can use any of the function available in the parallel package.
ans <- parSapply(1:200, function(x) mean(runif(100)))
ans <- parSapply(cl, 1:200, function(x) mean(runif(100)))

# We simply call stopCluster as we would do with any other cluster
# object
stopCluster(ans)
stopCluster(cl)
```

## Job arrays using the *apply family
Expand Down

0 comments on commit df891c4

Please sign in to comment.