Consolidated R package containing functions from FLCandy, FLRebuild, and rebuild packages needed for fisheries stock rebuilding analysis workflows.
# Install from local source
devtools::install("flr/rebuild")This package consolidates all functions needed for rebuilding analysis, eliminating the need to source multiple files from different packages. All functions previously sourced in analysis scripts are now available through a single package.
toLogits(),fromLogits()- Steepness parameter transformationsftmb(),ftmb2(),ftmb3()- Stock-recruitment relationship fittingupdateRefs()- Update reference pointspellatParams(),pellatParamFn()- Pella-Thompson production model parametersabi(),abiAge(),abiMsy()- Age-based indicatorsprocessError()- Process error calculationcovarFn(),leslieFn()- Life history and demographic covariates
invSRR(),refCreate(),rmax(),rmsy(),rvirgin()- Stock-recruitment reference points
- Rebuilding trajectory functions (
rebuild(),rebuildTime(), etc.) - Pella-Tomlinson model functions
- Bootstrap and rebuilding analysis functions
library(rebuild)
# All functions are now available without sourcing
library(FLCore)
library(FLBRP)
# Example: Fit stock-recruitment relationship
# sr <- ftmb2(flsr_object, spr0 = 0.7)
# Example: Update reference points
# brp <- updateRefs(brp_object)
# Example: Calculate covariates
# covars <- covarFn(brp_object)from_logits()→fromLogits()to_logits()→toLogits()
See NEWS.md for migration guide.
This package consolidates functions from FLCandy and FLRebuild packages. As of version 0.1.0, this package replaces FLRebuild and is self-contained (FLRebuild is no longer a dependency). FLCandy may still be required for some internal methods.