{
  "_id": "6b0fe7537510c4b9d7da3c01",
  "Package": "gadgetutils",
  "Type": "Package",
  "Title": "Tools to create and maintain gadget3 models",
  "Version": "0.0.0.9000",
  "Authors@R": "c(person(\"William\", \"Butler\", email=\"will.butler@hafogvatn.is\",role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-3286-0748\")),\nperson(\"Bjarki Thor\", \"Elvarsson\", email=\"bjarki.elvarsson@hafogvatn.is\",role = c(\"aut\"), comment = c(ORCID = \"0000-0001-5855-1188\")),\nperson(\"Jamie\", \"Lentin\", email=\"lentinj@shuttlethread.com\",role = c(\"aut\"), comment = c(ORCID = \"0000-0001-5727-2996\")),\nperson(\"Mikko\", \"Vihtakari\", email = \"mikko.vihtakari@hi.no\",role = c(\"aut\"), comment = c(ORCID = \"0000-0003-0371-4319\")),\nperson(\"Marine and Freshwater Research Institute (Iceland)\", role = c(\"cph\")))",
  "Maintainer": "William Butler <will.butler@hafogvatn.is>",
  "Description": "A collection of functions to aid (1) setting up and\nmaintaining gadget3 models, (2) optimising, analysing, and\nrunning diagnostics on gadget3 models.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://gadget-framework.r-universe.dev",
  "Date/Publication": "2026-10-22 11:56:27 UTC",
  "RemoteUrl": "https://github.com/gadget-framework/gadgetutils",
  "RemoteRef": "HEAD",
  "RemoteSha": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-12-02 09:35:12 UTC",
    "User": "root"
  },
  "Author": "William Butler [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-3286-0748>),\nBjarki Thor Elvarsson [aut] (ORCID:\n<https://orcid.org/0000-0001-5855-1188>),\nJamie Lentin [aut] (ORCID: <https://orcid.org/0000-0001-5727-2996>),\nMikko Vihtakari [aut] (ORCID: <https://orcid.org/0000-0003-0371-4319>),\nMarine and Freshwater Research Institute (Iceland) [cph]",
  "_user": "gadget-framework",
  "_type": "src",
  "_file": "gadgetutils_0.0.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/89bd796b44f75109fe99a27596601c3f46e662d64d84b44fe9636efd8fdb7ed8",
  "_filesize": 243781,
  "_sha256": "89bd796b44f75109fe99a27596601c3f46e662d64d84b44fe9636efd8fdb7ed8",
  "_expires": "2027-03-12T09:39:29.000Z",
  "_created": "2026-12-02T09:35:12.000Z",
  "_published": "2026-12-02T09:39:31.061Z",
  "_upstream": "https://github.com/gadget-framework/gadgetutils",
  "_status": "success",
  "_maintainer": {
    "name": "William Butler",
    "email": "will.butler@hafogvatn.is",
    "login": "willbutler42",
    "description": "Postdoc @Hafro ",
    "uuid": 34750950,
    "orcid": "0000-0002-3286-0748"
  },
  "_jobs": [
    {
      "job": 143360654642,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "15588229659"
    },
    {
      "job": 143360654596,
      "time": 177,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "15589008379"
    },
    {
      "job": 143360654680,
      "time": 221,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "15589898481"
    },
    {
      "job": 143360654652,
      "time": 185,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "NOTE",
      "artifact": "15589908159"
    },
    {
      "job": 143358708695,
      "time": 199,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15589857701"
    },
    {
      "job": 143360654568,
      "time": 87,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15588922998"
    },
    {
      "job": 143360654592,
      "time": 168,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "15589002634"
    },
    {
      "job": 143360654632,
      "time": 145,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "15589786756"
    },
    {
      "job": 143360655174,
      "time": 151,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15589747269"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463",
  "_commit": {
    "id": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
    "author": "William Butler <will.butler@hafogvatn.is>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #53 from gadget-framework/g3_fit-f_by_age\n\ng3_fit: Add f_by_age argument for the age range of F",
    "time": 1792670187
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "gadget3",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "role": "Imports"
    },
    {
      "package": "modelr",
      "role": "Imports"
    },
    {
      "package": "parallel",
      "role": "Imports"
    },
    {
      "package": "unittest",
      "version": ">= 1.4",
      "role": "Suggests"
    }
  ],
  "_owner": "gadget-framework",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-43",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "willbutler42",
      "count": 150,
      "uuid": 34750950
    },
    {
      "user": "lentinj",
      "count": 49,
      "uuid": 586911
    },
    {
      "user": "bthe",
      "count": 27,
      "uuid": 7022612
    },
    {
      "user": "mikkovihtakari",
      "count": 26,
      "uuid": 4095204
    },
    {
      "user": "vbartolino",
      "count": 1,
      "uuid": 9845667
    }
  ],
  "_userbio": {
    "uuid": 77969645,
    "type": "organization",
    "name": "gadget-framework",
    "followers": 6
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/gadgetutils"
  },
  "_devurl": "https://github.com/gadget-framework/gadgetutils",
  "_searchresults": 13,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/gadgetutils.html",
    "extra/manual.pdf",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "William Butler",
      "email": "will.butler@hafogvatn.is",
      "orcid": "0000-0002-3286-0748",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Bjarki Thor Elvarsson",
      "email": "bjarki.elvarsson@hafogvatn.is",
      "orcid": "0000-0001-5855-1188",
      "role": [
        "aut"
      ]
    },
    {
      "name": "Jamie Lentin",
      "email": "lentinj@shuttlethread.com",
      "orcid": "0000-0001-5727-2996",
      "role": [
        "aut"
      ]
    },
    {
      "name": "Mikko Vihtakari",
      "email": "mikko.vihtakari@hi.no",
      "orcid": "0000-0003-0371-4319",
      "role": [
        "aut"
      ]
    },
    {
      "name": "Marine and Freshwater Research Institute (Iceland)",
      "role": [
        "cph"
      ]
    }
  ],
  "_exports": [
    "%>%",
    "add_g3_attributes",
    "bind_fit",
    "bind_fit_components",
    "estimate_weights",
    "estimate_weights_adist",
    "estimate_weights_cdist",
    "eval_bounded",
    "extract_year_step",
    "g3_add_parscale",
    "g3_data",
    "g3_fit",
    "g3_init_guess",
    "g3_iterative",
    "g3_iterative_default_grouping",
    "g3_iterative_setup",
    "g3_jitter",
    "g3_leaveout",
    "g3_lik_out",
    "g3_optim",
    "g3_retro",
    "g3_sensitivity",
    "g3_stock_name",
    "g3_update_weights",
    "init_abund",
    "init_sd",
    "jitter_params",
    "model_actions",
    "mohnrho",
    "read.g3.param",
    "stock_renewal",
    "stock_species",
    "tabulate_SS",
    "value_from_bounds",
    "write.g3.file",
    "write.g3.param"
  ],
  "_help": [
    {
      "page": "add_g3_attributes",
      "title": "Add gadget3 attributes to an existing data frame",
      "topics": [
        "add_g3_attributes"
      ]
    },
    {
      "page": "bind_fit",
      "title": "Combine multiple gadget.fit objects",
      "topics": [
        "bind_fit"
      ]
    },
    {
      "page": "bind_fit_components",
      "title": "Combine individual elements from multiple gadget.fit objects",
      "topics": [
        "bind_fit_components"
      ]
    },
    {
      "page": "check_params_out",
      "title": "Internal function to check whether g3_optim has succeeded or crashed. Used by the gadgetutils g3_* functions.",
      "topics": [
        "check_params_out"
      ]
    },
    {
      "page": "estimate_weights",
      "title": "Shortcut weights",
      "topics": [
        "estimate_weights"
      ]
    },
    {
      "page": "estimate_weights_adist",
      "title": "Residual variance for abundance distributions",
      "topics": [
        "estimate_weights_adist"
      ]
    },
    {
      "page": "estimate_weights_cdist",
      "title": "Residual variance for catch distributions",
      "topics": [
        "estimate_weights_cdist"
      ]
    },
    {
      "page": "eval_bounded",
      "title": "Convert normalised bounded form back to value",
      "topics": [
        "eval_bounded"
      ]
    },
    {
      "page": "extract_year_step",
      "title": "Extracts year and step columns",
      "topics": [
        "extract_year_step"
      ]
    },
    {
      "page": "g3_add_parscale",
      "title": "Added parscale to a parameter template. No longer needed.",
      "topics": [
        "g3_add_parscale"
      ]
    },
    {
      "page": "g3_data",
      "title": "Aggregate count data from a data frame to gadget3",
      "topics": [
        "g3_data"
      ]
    },
    {
      "page": "g3_fit",
      "title": "Build output summary suitable for feeding into gadgetplots",
      "topics": [
        "g3_fit"
      ]
    },
    {
      "page": "g3_init_guess",
      "title": "Set initial guesses for parameter values in g3_cpp parameter template",
      "topics": [
        "g3_init_guess"
      ]
    },
    {
      "page": "g3_iterative",
      "title": "Iterative re-weighting",
      "topics": [
        "g3_iterative",
        "g3_iterative_default_grouping"
      ]
    },
    {
      "page": "g3_iterative_setup",
      "title": "Initial parameters for iterative re-weighting",
      "topics": [
        "g3_iterative_setup"
      ]
    },
    {
      "page": "g3_jitter",
      "title": "Jitter analysis",
      "topics": [
        "g3_jitter"
      ]
    },
    {
      "page": "g3_leaveout",
      "title": "Leave-one-out analysis.",
      "topics": [
        "g3_leaveout"
      ]
    },
    {
      "page": "g3_lik_out",
      "title": "Likelihood summary for a model run",
      "topics": [
        "g3_lik_out"
      ]
    },
    {
      "page": "g3_optim",
      "title": "Wrapper for stats::optim that returns the g3_cpp parameter template with optimised values",
      "topics": [
        "g3_optim"
      ]
    },
    {
      "page": "g3_retro",
      "title": "Analytical retrospective",
      "topics": [
        "g3_retro"
      ]
    },
    {
      "page": "g3_sensitivity",
      "title": "Sensitivity analysis",
      "topics": [
        "g3_sensitivity"
      ]
    },
    {
      "page": "g3_stock_name",
      "title": "Extract parts from stock name",
      "topics": [
        "g3_stock_name"
      ]
    },
    {
      "page": "g3_update_weights",
      "title": "Updates weights for second stage of iterative re-weighting",
      "topics": [
        "g3_update_weights"
      ]
    },
    {
      "page": "init_abund",
      "title": "Generate parameterised g3a_initial_abund",
      "topics": [
        "init_abund"
      ]
    },
    {
      "page": "init_sd",
      "title": "Generate parameterised initial conditions",
      "topics": [
        "init_sd"
      ]
    },
    {
      "page": "jitter_params",
      "title": "Creates a jittered g3_tmb parameter template",
      "topics": [
        "jitter_params"
      ]
    },
    {
      "page": "model_actions",
      "title": "Generate a standard set of model actions",
      "topics": [
        "model_actions"
      ]
    },
    {
      "page": "mohnrho",
      "title": "Generate parameterised g3a_initial_abund",
      "topics": [
        "mohnrho"
      ]
    },
    {
      "page": "read.g3.param",
      "title": "Reads a file from write.g3.file to an object. Now depreciated, using RData files for read/write.",
      "topics": [
        "read.g3.param"
      ]
    },
    {
      "page": "run_g3_optim",
      "title": "Wrapper for g3_optim. This is an internal function used by the g3_* functions",
      "topics": [
        "run_g3_optim"
      ]
    },
    {
      "page": "stock_renewal",
      "title": "Generate paramerterised stock renewal factor",
      "topics": [
        "stock_renewal"
      ]
    },
    {
      "page": "stock_species",
      "title": "Extract species name from stock",
      "topics": [
        "stock_species"
      ]
    },
    {
      "page": "tabulate_SS",
      "title": "Calculates likelihood component scores, including scores normalised by the minimum value",
      "topics": [
        "tabulate_SS"
      ]
    },
    {
      "page": "value_from_bounds",
      "title": "Convert value into it's normalised form for use with bounded()",
      "topics": [
        "value_from_bounds"
      ]
    },
    {
      "page": "write.g3.file",
      "title": "Writes an object to a file, typically just used within gadgetutils g3_ functions",
      "topics": [
        "write.g3.file"
      ]
    },
    {
      "page": "write.g3.param",
      "title": "A wrapper for write.g3.file that formats a gadget3 TMB parameter data.frame for writing to file",
      "topics": [
        "write.g3.param"
      ]
    }
  ],
  "_readme": "https://github.com/gadget-framework/gadgetutils/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "broom",
    "cli",
    "cpp11",
    "digest",
    "dplyr",
    "gadget3",
    "generics",
    "glue",
    "lattice",
    "lifecycle",
    "magrittr",
    "Matrix",
    "modelr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "Rcpp",
    "RcppEigen",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "TMB",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 2.4149733479708178,
  "_indexed": true,
  "_nocasepkg": "gadgetutils",
  "_universes": [
    "gadget-framework",
    "willbutler42"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:37:17.000Z",
      "distro": "resolute",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/11c4a48895b860667987209cdc7408a1d47283d5434a15782322c526a5c9a390",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:37:23.000Z",
      "distro": "resolute",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/f3a8fb0c38eb14779534d8c82319bc286b37e468f19d329459435caf686b291c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:37:16.000Z",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/c8475780676d0260063c7889d29c25d0ee78795fd7d11632a7189229b309f870",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:37:06.000Z",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/c7cc93b18d38832e7bf31bdf3304089a15206496bca8959add53e60800032fea",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:36:56.000Z",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/28123f1a910415c629164bad8a0df630d119b8fd92db10cbe8d7d5652f54bca0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:36:36.000Z",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/9f2e6ac57ee1fa25b62b65e2066e4ce6055d6f198de70915c82b8ca8868463a7",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:36:15.000Z",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/147bcdd7f0e8404b8336309ca782a9131d01a13cb928c6b66a2219542bcd8565",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-12-02T09:36:23.000Z",
      "commit": "3667a2167adecb475bff88a1aaa3bd42e35fdb55",
      "fileid": "https://r2.ropensci.org/9ae619315dd1a08930b30b11b11d5fe3db979ca8dd763fa63cd5f5878299c9f0",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/gadget-framework/actions/runs/46851900463"
    }
  ]
}