From 91f8270cc33a3d45cdc65f126607c21e8eae31c5 Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Wed, 3 Jul 2024 15:27:29 +0100 Subject: [PATCH] Export the run_resumable_simulation Fixes #314 --- NAMESPACE | 1 + R/model.R | 1 + _pkgdown.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/NAMESPACE b/NAMESPACE index 4ba1e15d..3a17e182 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -16,6 +16,7 @@ export(peak_season_offset) export(rtss_booster_profile) export(rtss_profile) export(run_metapop_simulation) +export(run_resumable_simulation) export(run_simulation) export(run_simulation_with_repetitions) export(set_antimalarial_resistance) diff --git a/R/model.R b/R/model.R index d59132f5..db1b9c80 100644 --- a/R/model.R +++ b/R/model.R @@ -101,6 +101,7 @@ run_simulation <- function( #' @param restore_random_state if TRUE, restore the random number generator's state from the checkpoint. #' @return a list with two entries, one for the dataframe of results and one for the final #' simulation state. +#' @export run_resumable_simulation <- function( timesteps, parameters = NULL, diff --git a/_pkgdown.yml b/_pkgdown.yml index 28a83e81..393e7f68 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -48,6 +48,7 @@ reference: - run_simulation - run_metapop_simulation - run_simulation_with_repetitions + - run_resumable_simulation - title: "Parameter functions" contents: - get_parameters