Package 'JABBA3App'

Title: Shiny App for the JABBA3 Bayesian Surplus Production Model
Description: A step-by-step Shiny app for stock assessment with the JABBA3 Bayesian state-space surplus production model: load catch and abundance indices, derive priors and the production lag from life history, explore index agreement, fit and check the model, compare runs and ensembles, and project the stock with Kobe II matrices and harvest control rules. The app calls the JABBA3 functions, so every step can be repeated in a script.
Authors: Henning Winker [aut, cre]
Maintainer: Henning Winker <[email protected]>
License: GPL (>= 3)
Version: 0.2.0
Built: 2026-12-04 14:33:35 UTC
Source: https://github.com/sschirico/JABBA3App

Help Index


Copy the data and life-history templates

Description

Writes the csv templates that the app reads, with the Atlantic bigeye tuna example files, to a folder. The same files can be downloaded in the app's Setup step.

Usage

jabba3app_templates(
  dir = ".",
  which = c("all", "data", "life_history"),
  overwrite = FALSE
)

Arguments

dir

Folder to write to (created).

which

"all", "data" or "life_history".

overwrite

Replace existing files.

Details

  • JABBA3_data_template.csv: blank data template, one row per record with the columns year, type (Catch or Index), series, value and se (log-scale standard error of an index value; may be blank).

  • JABBA3_example_data_bigeye.csv: Atlantic bigeye tuna (ICCAT), from the iccat dataset in JABBA3.

  • JABBA3_life_history_template.csv: blank life-history template.

  • JABBA3_life_history_example_bigeye.csv: approximate bigeye biology from the JABBA3 user guide (illustrative only).

Value

The paths of the files written, invisibly.

Examples

jabba3app_templates(tempdir())

Start the JABBA3 app

Description

Opens the JABBA3 Shiny app: load catch and abundance indices, set the priors from life history, choose the model settings, run and check the model, compare runs and forecast, step by step in the left panel. The app calls the JABBA3 functions, so everything done in the app can be repeated in a script (see vignette("jabba3app-02-user-guide")).

Usage

run_app(...)

Arguments

...

passed to shiny::runApp(), e.g. launch.browser = TRUE or port = 3838.

Value

called for its side effect (runs the app).

Examples

if (interactive()) run_app()