Skip to contents

Install

JABBA3App installs JABBA3 from GitHub as a dependency. The app itself needs shiny, shinydashboard and commonmark, the same packages as the FLOSS and casimir apps.

install.packages(c("remotes", "shiny", "shinydashboard", "commonmark", "patchwork"))
remotes::install_github("Henning-Winker/JABBA3App")   # also installs JABBA3

JABBA3 fits its models with RTMB, which compiles C++ code when it is installed from source. On Windows this needs Rtools (the version that matches your R, https://cran.r-project.org/bin/windows/Rtools/); on macOS the Xcode command-line tools (xcode-select --install). pkgbuild::has_build_tools(debug = TRUE) checks the toolchain.

Start

run_app() passes its arguments to shiny::runApp(), for example run_app(launch.browser = TRUE) to open the app in the web browser instead of the RStudio viewer.

Templates

The app reads one csv file of catch and indices, and optionally a life-history file. jabba3app_templates() copies the blank templates and the Atlantic bigeye tuna example files to a folder; they can also be downloaded in the app’s Data step (1) and Model setup › Priors (3).

jabba3app_templates("my_assessment")

Update

When a new version of JABBA3 or of the app is released, reinstall and restart R:

remotes::install_github("Henning-Winker/JABBA3")
remotes::install_github("Henning-Winker/JABBA3App")

Troubleshooting

Message Cause and fix
could not find function "app_body" the app’s files were run line by line, so the files in inst/app/R were not loaded. Start the app with run_app().
Line starting '...' is malformed! (from read.dcf) a DESCRIPTION file with text that is not package metadata (for example, git commands pasted into it). Reinstall the package, or restore the file from GitHub.
The app needs: ... install the packages named: install.packages(c("shiny", "shinydashboard", "commonmark")).
package 'x' was built under R version ... a warning only: the package was built for a newer patch release of R. It can be ignored, or R updated.
Plots do not appear (Linux) ragg or the cairo libraries do not load; run_app() falls back to the base png device and says how to repair it.