Changelog
Source:NEWS.md
mizerStarvation 0.2.0
Updated to the conventions of mizer 3.3.0, which is now the minimum required version.
-
setStarvation()now records the extension on the params object withmizer::recordExtension()instead of copying the whole session-wide chain returned bygetRegisteredExtensions()into theextensionsslot. The slot therefore lists only the extensions actually applied to the model, and each entry carries both the installation requirement and the version of mizerStarvation that the model conforms to. Code readingparams@extensions[["mizerStarvation"]]now gets a named character vector withrequirementandversionentries rather than a bare requirement string. -
setStarvation()writesstarv_coefwithgiven_species_params<-()so that it is recorded as user input, and validates and upgrades its argument withvalidParams()rather than only callingvalidObject(). -
starvMort()andgetStarvMort()gained an explicittargument, which is passed on togetEReproAndGrowth(). Previously the time was silently dropped, so starvation mortality was evaluated att = 0in models with time-dependent rates. - Bug fix:
getStarvMort()ignored then,n_ppandn_otherarguments it was given and always used the initial values stored in the params object. It now uses the abundances passed to it. Calls that relied on the defaults are unaffected.