prog_breaks | R Documentation |
Used internally. Generates breakpoints, messages, and 'batches' of trial
numbers to simulate when using run_trials()
with the progress
argument in
use. Breaks will be multiples of the number of cores
, and repeated use of
the same values for breaks is avoided (if, e.g., the number of breaks times
the number of cores is not possible if few new trials are to be run). Inputs
are validated by run_trials()
.
prog_breaks(progress, prev_n_rep, n_rep_new, cores)
progress |
single numeric |
prev_n_rep |
single integer, the previous number of simulations run (to add to the indices generated and used). |
n_rep_new |
single integers, number of new simulations to run (i.e.,
|
cores |
|
List containing breaks
(the number of patients at each break),
start_mess
and prog_mess
(the basis of the first and subsequent
progress messages), and batches
(a list with each entry corresponding to
the simulation numbers in each batch).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.