Brings the package up to date with mizer 3.3.0.9000, which mizerShelf now requires.
-
New
tuneSteadyState()method formizerShelfobjects. It is the mizerShelf method under the name mizer now prefers for whatsteady()did, and like thesteady()method it callstune_carrion_detritus()once the consumers have converged. Thesteady()method is kept, and is now labelled superseded. -
The carrion and detritus calculations no longer assume they are given the complete list of rates. Mizer's steady-state diagnostics call the resource and component dynamics with only the rates that the resource mortality depends on, which leaves out the fishing mortality that
getCarrionProduction()needs. It used to fail with "non-conformable arguments", whichisSteady()caught and reported as a model that is not at its steady state. Whatever is missing is now filled in, sogetSteadyResidual(),isSteady()and the steady-state line ofsummary()work on a shelf model.NWMed_paramsis correctly recognised as being at its steady state. -
New
balance_detritus_dynamics()tells mizer that there is nothing to balance when it restores the detritus resource.detritus_dynamics()reads neither the resource rate nor the resource capacity, so mizer's warning that it could not rebalance them was a false alarm. What makes the stored detritus abundance a steady state is the external inflow set bytune_carrion_detritus(). -
tuneSteadyState()no longer passes on mizer's warning that the carrion component is held fixed throughout the search, because the mizerShelf method takes responsibility for that component itself.
- The integrals over the consumer size spectrum in the carrion and detritus
calculations now use
mizer::bin_average_weight(), so they apply the quadrature scheme the model is actually on. Results are unchanged on the default scheme; a model withsecond_order_w(params)$bin_averageswitched on now gets carrion and detritus rates that are correct to second order.
-
plotDeath()usesmizer::finalParams()in place of the deprecatedsetInitialValues(). -
plotYieldMinusDiscards(sim, sim2)works again. It took the discard fraction off the long data frame thatplotYield(return_data = TRUE)returns rather than off the yield array, which has not been a numeric matrix for some time. -
The
steady()method takes the full argument list of the generic, which has grownt_save,amplitude_tol,amp_rel_tolandextinction_threshold. -
The "Exploring scenarios" vignette follows the extra
Legendcolumn thatplotYield(return_data = TRUE)now returns, and the model description usesreproduction_level()in place of the deprecatedgetReproductionLevel(). -
newDetritusCarrionParams()records the extension withmizer::recordExtension()instead of writing the whole session registry into theextensionsslot. The object now carries a mizerShelf version stamp, and records the extensions actually applied to it rather than every extension package that happened to be loaded when it was built. -
The agent configuration files are excluded from the package build, so
R CMD checkno longer reports them as non-standard top-level and hidden files. -
R CMD checkis clean. The two errors reported by the previous release candidate came from mizer's dynamic marker classes living in.GlobalEnv, wherecleanEx()destroyed them between examples; mizer now keeps them in an attachedmizer:extension-classesenvironment (sizespectrum/mizer#587), so there is nothing left to work around here.
Version accompanying de Juan, Delius & Maynou (2023), https://doi.org/10.1016/j.fishres.2023.106764.