Skip to content

gadget3

Globally-Applicable Area Disaggregated General Ecosystem Toolbox V3

v0.15-1 · Jan 12, 2026 · GPL-2

Description

A framework to assist creation of marine ecosystem models, generating either 'R' or 'C++' code which can then be optimised using the 'TMB' package and standard 'R' tools. Principally designed to reproduce gadget2 models in 'TMB', but can be extended beyond gadget2's capabilities. Kasper Kristensen, Anders Nielsen, Casper W. Berg, Hans Skaug, Bradley M. Bell (2016) <doi:10.18637/jss.v070.i05> "TMB: Automatic Differentiation and Laplace Approximation.". Begley, J., & Howell, D. (2004) <https://files01.core.ac.uk/download/pdf/225936648.pdf> "An overview of Gadget, the globally applicable area-disaggregated general ecosystem toolbox. ICES.".

Downloads

CRAN

582

Last 30 days

6227th

1.7K

Last 90 days

6.1K

Last year

Trend: +13.2% (30d vs prior 30d)

r2u CRAN

0

Last 30 days

25

Last 90 days

135

Last year

Trend: -100% (30d vs prior 30d)

autoCRAN

3

Last 7 days

10

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

33,645

Files

192

Compiled share

0%

Has compiled src

No

Language breakdown

R 10,440 (31%)Tests 14,208 (42.2%)Docs 6,570 (19.5%)Vignettes 2,427 (7.2%)

API

Exported functions

129

Internal functions

90

Recent export changes

v0.9-0+3 g3_eval, g3_suitability_andersenfleet, g3_is_stock
v0.8-4+85 g3_native, g3_global_formula, g3_env +82 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.36

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

97.6%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

11.1%

Unsafe pattern score

2

Dep constraint coverage

40%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.2.0

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

8

First release

2022-12-09

Latest release

2026-01-12

Avg cadence

160 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v0.8-4: 18,031 LOCv0.9-0: 18,433 LOCv0.10-1: 18,957 LOCv0.11-1: 23,081 LOCv0.12-1: 23,251 LOCv0.13-0: 33,318 LOCv0.14-0: 34,604 LOCv0.15-1: 33,645 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies digest rlang TMB gadget3

Version History

9 tracked
new 0.15-1 Mar 10, 2026
updated 0.15-1 ← 0.14-0 diff Jan 11, 2026
updated 0.14-0 ← 0.13-0 diff Oct 14, 2025
updated 0.13-0 ← 0.12-1 diff Apr 18, 2025
updated 0.12-1 ← 0.11-1 diff Jul 2, 2024
updated 0.11-1 ← 0.10-1 diff Mar 18, 2024
updated 0.10-1 ← 0.9-0 diff Aug 23, 2023
updated 0.9-0 ← 0.8-4 diff May 17, 2023
new 0.8-4 Dec 8, 2022