Skip to contents

R-CMD-check pkgdown MIT licence

sbtdata is the private, versioned data companion to the sbt southern bluefin tuna assessment model. It freezes the source objects and reviewed grid definitions used in assessments and historical comparisons.

It deliberately does not construct the assessment data/data_in list, call sbt::get_data(), or store a processed model-data object. Modelling and scientific decisions remain visible in the assessment script.

The package website is at https://quantifish.github.io/sbtdata/.

Installation

Install from the private GitHub repository using an account with access:

pak::pak("quantifish/sbtdata")

Basic use

library(sbtdata)

sbt_data_releases()

sbt2023 <- sbt_load_data("2023")
sbt2026 <- sbt_load_data("2026")

grid2023 <- sbt_load_grid("2023")
grid2026 <- sbt_load_grid("2026")
mle_comparison <- sbt_load_grid("2026", "mle-comparison")

The returned data object is a plain named list of source objects. It contains no model switches or selectivity configuration.

Assessment scripts should construct the model input in long form:

sbt2026 <- sbtdata::sbt_load_data("2026")

data <- list(
  last_yr = 2025,
  M_switch = 2L,
  # Every scientific setting is written explicitly here.
  length_mean = sbt2026$length_mean,
  length_sd = sbt2026$length_sd,
  catch = sbt2026$catch,
  catch_UA = sbt2026$catch_UA,
  scenarios_surf = sbt2026$scenarios_surface,
  scenarios_LL1 = sbt2026$scenarios_LL1,
  POPs = sbt2026$POPs,
  paly = sbt2026$paly,
  HSPs = sbt2026$HSPs,
  GTs = sbt2026$GTs,
  aerial_survey = sbt2026$aerial_survey,
  aerial_cov = sbt2026$aerial_cov,
  troll = sbt2026$troll,
  cpue = sbt2026$cpue,
  age_freq = sbt2026$age_freq,
  length_freq = sbt2026$length_freq,
  tag_reporting = sbt2026$tag_reporting,
  tag_releases = sbt2026$tag_releases,
  tag_recaptures = sbt2026$tag_recaptures
  # Remaining settings continue explicitly.
)

data <- sbt::get_data(data_in = data)

See the package vignette for a data dictionary, the complete 2026 long-form configuration, and the historical-comparison workflow.

Provenance

The manifest records source-file and per-object SHA-256 hashes, dimensions, classes, terminal years, and the exact sbt and sbt2026 commits from which each release was frozen.