A minor version release of simulist containing various minor improvements to the functions and documentation, as well as removing some triggers for warning users. There are also a few bug fixes and internal enhancements.
New features
External
- Defaults have been added to all
sim_*()
arguments that previously did not have one. Allowing functions to be run without specifying any arguments (e.g.linelist <- sim_linelist()
) (#149). - Documentation for
sim_*()
function arguments that accept either afunction
or an<epiparameter>
object has been improved (#149). sim_*()
functions no longer warn if the user has not specified*_risk
arguments and have setonset_to_*
arguments toNULL
(#149).- All vignettes now use
rmarkdown::html_vignette
for to correctly render the website and for maximum compatibility with {pkgdown} >= 2.1.0. This removes figure numbering and code folding (#153).
Internal
Breaking changes
- The function arguments
infect_period
andprob_infect
have been renamedinfectious_period
andprob_infection
(#143). sim_*()
functions now useNULL
instead ofNA
to turn off processes (e.g.onset_to_death = NULL
for no deaths) (#148).
Bug fixes
- A new function,
.sample_infect_period()
is added that errors if the infectious period function generates a negative number (#142). sim_linelist()
no longer errors whenhosp_death_risk
isNULL
andonset_to_death
is parameterised as a delay distribution (#144)..add_ct()
generates the correct number of values and does not duplicate Ct values due to vector recycling (#158).- Update {epiparameter} usage (#159).
Deprecated and defunct
- None