Skip to contents

Generic post-simulation runner server

Usage

mod_generic_run_postsim_server(
  id,
  sim_res = reactive(NULL),
  ceq_progress = NULL,
  fn_ceq_postsim = function(x, progress_tick = function() {
 }) {
     progress_tick()
  
      x
 },
  ...
)

Arguments

sim_res

reactive containing results of the `mod_generic_run_sim_server`

ceq_progress

is reactive tha contains progress function created with the `fct_make_ceq_progress`

fn_ceq_postsim

a function that performs post-simulation calculations that is relevant to perform at this stage. This, for example could be aggregating deciles or creating a bulk of default plots. it accepts two arguments `sim_res()` and `progress_tick`, which is the function that ticks progress.

Value

a `reactiveValues` object that contains a list of data sets with post simulation results that are usually can be directly plotted.