Skip to content

Commit 0cf36a1

Browse files
committed
edit based on John's comments
1 parent 66c72ab commit 0cf36a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vignettes/sim_fixed_design_custom.Rmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,10 +275,11 @@ one_sim <- function(sim_id = 1,
275275
}
276276
```
277277

278-
After that, we will execute `one_sim()` multiple times using parallel computation. The following lines of code takes 4 works to run 100 simulations.
278+
After that, we will execute `one_sim()` multiple times using parallel computation. The following lines of code takes 2 works to run 100 simulations.
279279
```{r}
280280
set.seed(2025)
281281
282+
plan("multisession", workers = 2)
282283
ans <- foreach(
283284
sim_id = seq_len(n_sim),
284285
.combine = "rbind",

0 commit comments

Comments
 (0)