inst/doc/parallelization.R

## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(SimEngine)

## -----------------------------------------------------------------------------
sim <- new_sim()
sim %<>% set_config(parallel = TRUE)

## -----------------------------------------------------------------------------
sim %<>% set_config(n_cores = 2)

Try the SimEngine package in your browser

Any scripts or data that you put into this service are public.

SimEngine documentation built on May 29, 2024, 9:48 a.m.