{
  "_id": "6b097dc0b6d08ed7e3d8df0e",
  "Package": "gretaR",
  "Title": "Bayesian Statistical Modelling with Torch",
  "Version": "0.5.2",
  "Authors@R": "person(\"Max\", \"Moldovan\", , \"max.moldovan@adelaide.edu.au\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0001-9680-8474\"))",
  "Description": "A probabilistic programming package for Bayesian\nstatistical modelling in R using native R syntax. Models are\ndefined interactively with 'gretaR_array' objects, then\ncompiled to 'torch' tensors for Hamiltonian Monte Carlo and\nNo-U-Turn Sampler inference. Runs on a native 'torch'\n(libtorch) backend with no Python dependency required.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/max578/gretaR, https://max578.github.io/gretaR/",
  "BugReports": "https://github.com/max578/gretaR/issues",
  "VignetteBuilder": "knitr",
  "Additional_repositories": "https://stan-dev.r-universe.dev",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "Encoding": "UTF-8",
  "Language": "en-AU",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Repository": "https://max578.r-universe.dev",
  "Date/Publication": "2026-10-16 21:46:52 UTC",
  "RemoteUrl": "https://github.com/max578/gretaR",
  "RemoteRef": "main",
  "RemoteSha": "c4a1515f527054691ee8a132a2ddf0647d539c40",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-27 12:48:44 UTC",
    "User": "root"
  },
  "Author": "Max Moldovan [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-9680-8474>)",
  "Maintainer": "Max Moldovan <max.moldovan@adelaide.edu.au>",
  "_user": "max578",
  "_type": "src",
  "_file": "gretaR_0.5.2.tar.gz",
  "_fileid": "https://r2.ropensci.org/a86355edf8e441d66f4be0a29a04fb9aad0af94af3d147693f5b7d2d45ef41e7",
  "_filesize": 547627,
  "_sha256": "a86355edf8e441d66f4be0a29a04fb9aad0af94af3d147693f5b7d2d45ef41e7",
  "_expires": "2027-03-07T12:55:26.000Z",
  "_created": "2026-11-27T12:48:44.000Z",
  "_published": "2026-11-27T12:55:28.543Z",
  "_upstream": "https://github.com/max578/gretaR",
  "_status": "success",
  "_maintainer": {
    "name": "Max Moldovan",
    "email": "max.moldovan@adelaide.edu.au",
    "orcid": "0000-0001-9680-8474"
  },
  "_jobs": [
    {
      "job": 140515161899,
      "time": 241,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "15198642272"
    },
    {
      "job": 140515161876,
      "time": 334,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15198223165"
    },
    {
      "job": 140515161891,
      "time": 177,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "15198412346"
    },
    {
      "job": 140515161967,
      "time": 253,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15199505018"
    },
    {
      "job": 140513309677,
      "time": 230,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15198098050"
    },
    {
      "job": 140515161824,
      "time": 280,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15198158703"
    },
    {
      "job": 140515161918,
      "time": 356,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "ERROR",
      "artifact": "15199176468"
    },
    {
      "job": 140515161818,
      "time": 343,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "15198313070"
    },
    {
      "job": 140515161932,
      "time": 348,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "ERROR",
      "artifact": "15198797861"
    }
  ],
  "_buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405",
  "_commit": {
    "id": "c4a1515f527054691ee8a132a2ddf0647d539c40",
    "author": "Max Moldovan <max.moldovan@gmail.com>",
    "committer": "Max Moldovan <max.moldovan@gmail.com>",
    "message": "ci: use the plugins input of codecov-action v5\n",
    "time": 1792187212
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "R6",
      "version": ">= 2.5.0",
      "role": "Imports"
    },
    {
      "package": "torch",
      "version": ">= 0.12.0",
      "role": "Imports"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "posterior",
      "version": ">= 1.5.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "Matrix",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "reformulas",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "cmdstanr",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "bayesplot",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "loo",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "max578",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-15",
      "n": 25
    },
    {
      "week": "2026-17",
      "n": 3
    },
    {
      "week": "2026-21",
      "n": 3
    },
    {
      "week": "2026-23",
      "n": 23
    },
    {
      "week": "2026-24",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 5
    },
    {
      "week": "2026-35",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 2
    },
    {
      "week": "2026-41",
      "n": 3
    },
    {
      "week": "2026-42",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2026-05-21"
    },
    {
      "name": "v0.2.1",
      "date": "2026-05-22"
    },
    {
      "name": "v0.3.0",
      "date": "2026-06-01"
    },
    {
      "name": "v0.4.0",
      "date": "2026-06-02"
    },
    {
      "name": "v0.5.0",
      "date": "2026-06-03"
    },
    {
      "name": "v0.5.1",
      "date": "2026-06-25"
    },
    {
      "name": "v0.5.2",
      "date": "2026-10-09"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "max578",
      "count": 73,
      "uuid": 35710829
    }
  ],
  "_userbio": {
    "uuid": 35710829,
    "type": "user",
    "name": "Max Moldovan",
    "followers": 4,
    "description": "Research scientist, R&D translation professional, woking on practical impact applications in agriculture, healthcare/madicine and good-practices-AI education."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/gretaR"
  },
  "_devurl": "https://github.com/max578/gretar",
  "_pkgdown": "https://max578.github.io/gretaR/",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/gretaR.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_cranurl": false,
  "_authors": [
    {
      "name": "Max Moldovan",
      "email": "max.moldovan@adelaide.edu.au",
      "orcid": "0000-0001-9680-8474",
      "role": [
        "aut",
        "cre",
        "cph"
      ]
    }
  ],
  "_exports": [
    "%*%",
    "as_data",
    "bernoulli",
    "beta_dist",
    "binomial_dist",
    "cauchy",
    "compile_to_stan",
    "custom_distribution",
    "dirichlet",
    "distribution",
    "distribution<-",
    "exponential",
    "gamma_dist",
    "gretaR_glm",
    "half_cauchy",
    "half_normal",
    "hmc",
    "joint_density",
    "laplace",
    "lkj_correlation",
    "lognormal",
    "mcmc",
    "mixture",
    "model",
    "model_from_arrays",
    "multivariate_normal",
    "negative_binomial",
    "normal",
    "nuts",
    "opt",
    "parse_re_bars",
    "poisson_dist",
    "process_smooths",
    "random_effect",
    "remove_re_bars",
    "reset_gretaR_env",
    "student_t",
    "uniform",
    "variable",
    "variational",
    "wishart"
  ],
  "_help": [
    {
      "page": "sub-.gretaR_array",
      "title": "Extract elements from a gretaR_array",
      "topics": [
        "[.gretaR_array"
      ]
    },
    {
      "page": "grapes-times-grapes",
      "title": "Matrix multiplication with gretaR_array support",
      "topics": [
        "%*%"
      ]
    },
    {
      "page": "as_data",
      "title": "Wrap Observed Data as a gretaR Array",
      "topics": [
        "as_data"
      ]
    },
    {
      "page": "bernoulli",
      "title": "Bernoulli Distribution",
      "topics": [
        "bernoulli"
      ]
    },
    {
      "page": "beta_dist",
      "title": "Beta Distribution",
      "topics": [
        "beta_dist"
      ]
    },
    {
      "page": "binomial_dist",
      "title": "Binomial Distribution",
      "topics": [
        "binomial_dist"
      ]
    },
    {
      "page": "cauchy",
      "title": "Cauchy Distribution",
      "topics": [
        "cauchy"
      ]
    },
    {
      "page": "coef.gretaR_fit",
      "title": "Extract Coefficients from a gretaR Fit",
      "topics": [
        "coef.gretaR_fit"
      ]
    },
    {
      "page": "compile_to_stan",
      "title": "Generate Stan Code from a gretaR Model",
      "topics": [
        "compile_to_stan"
      ]
    },
    {
      "page": "custom_distribution",
      "title": "Custom Distribution",
      "topics": [
        "custom_distribution"
      ]
    },
    {
      "page": "dirichlet",
      "title": "Dirichlet distribution",
      "topics": [
        "dirichlet"
      ]
    },
    {
      "page": "distribution",
      "title": "Get the Distribution of a gretaR Array",
      "topics": [
        "distribution"
      ]
    },
    {
      "page": "distribution-set",
      "title": "Assign a Distribution (Likelihood) to Observed Data",
      "topics": [
        "distribution<-"
      ]
    },
    {
      "page": "exponential",
      "title": "Exponential Distribution",
      "topics": [
        "exponential"
      ]
    },
    {
      "page": "gamma_dist",
      "title": "Gamma Distribution",
      "topics": [
        "gamma_dist"
      ]
    },
    {
      "page": "gretaR_glm",
      "title": "Fit a Bayesian GLM Using Formula Syntax",
      "topics": [
        "gretaR_glm"
      ]
    },
    {
      "page": "half_cauchy",
      "title": "Half-Cauchy Distribution",
      "topics": [
        "half_cauchy"
      ]
    },
    {
      "page": "half_normal",
      "title": "Half-Normal Distribution",
      "topics": [
        "half_normal"
      ]
    },
    {
      "page": "hmc",
      "title": "Run HMC Sampling",
      "topics": [
        "hmc"
      ]
    },
    {
      "page": "joint_density",
      "title": "Get the Log Joint Density Function",
      "topics": [
        "joint_density"
      ]
    },
    {
      "page": "laplace",
      "title": "Laplace Approximation",
      "topics": [
        "laplace"
      ]
    },
    {
      "page": "lkj_correlation",
      "title": "LKJ Correlation distribution",
      "topics": [
        "lkj_correlation"
      ]
    },
    {
      "page": "lognormal",
      "title": "Log-Normal Distribution",
      "topics": [
        "lognormal"
      ]
    },
    {
      "page": "mcmc",
      "title": "Draw MCMC Samples from a gretaR Model",
      "topics": [
        "mcmc"
      ]
    },
    {
      "page": "mean.gretaR_array",
      "title": "Mean of a gretaR_array",
      "topics": [
        "mean.gretaR_array"
      ]
    },
    {
      "page": "mixture",
      "title": "Mixture Distribution",
      "topics": [
        "mixture"
      ]
    },
    {
      "page": "model",
      "title": "Create a gretaR Model",
      "topics": [
        "model"
      ]
    },
    {
      "page": "model_from_arrays",
      "title": "Build a gretaR Model from Explicit Arrays (Programmatic Interface)",
      "topics": [
        "model_from_arrays"
      ]
    },
    {
      "page": "multivariate_normal",
      "title": "Multivariate Normal Distribution",
      "topics": [
        "multivariate_normal"
      ]
    },
    {
      "page": "negative_binomial",
      "title": "Negative Binomial distribution",
      "topics": [
        "negative_binomial"
      ]
    },
    {
      "page": "normal",
      "title": "Normal Distribution",
      "topics": [
        "normal"
      ]
    },
    {
      "page": "nuts",
      "title": "Run NUTS Sampling",
      "topics": [
        "nuts"
      ]
    },
    {
      "page": "opt",
      "title": "Find the Maximum A Posteriori (MAP) Estimate",
      "topics": [
        "opt"
      ]
    },
    {
      "page": "parse_re_bars",
      "title": "Parse random effects bar terms from an lme4-style formula",
      "topics": [
        "parse_re_bars"
      ]
    },
    {
      "page": "plot.gretaR_fit",
      "title": "Plot Diagnostics for a gretaR Fit",
      "topics": [
        "plot.gretaR_fit"
      ]
    },
    {
      "page": "poisson_dist",
      "title": "Poisson Distribution",
      "topics": [
        "poisson_dist"
      ]
    },
    {
      "page": "print.gretaR_fit",
      "title": "Print a gretaR Fit Object",
      "topics": [
        "print.gretaR_fit"
      ]
    },
    {
      "page": "process_smooths",
      "title": "Process Smooth Terms from an mgcv-Style Formula",
      "topics": [
        "process_smooths"
      ]
    },
    {
      "page": "random_effect",
      "title": "Partially-Centred Random-Effect Block",
      "topics": [
        "random_effect"
      ]
    },
    {
      "page": "remove_re_bars",
      "title": "Remove random effects bar terms from a formula",
      "topics": [
        "remove_re_bars"
      ]
    },
    {
      "page": "reset_gretaR_env",
      "title": "Reset the gretaR Global Environment",
      "topics": [
        "reset_gretaR_env"
      ]
    },
    {
      "page": "student_t",
      "title": "Student-t Distribution",
      "topics": [
        "student_t"
      ]
    },
    {
      "page": "sum.gretaR_array",
      "title": "Sum of a gretaR_array",
      "topics": [
        "sum.gretaR_array"
      ]
    },
    {
      "page": "summary.gretaR_fit",
      "title": "Summarise a gretaR Fit Object",
      "topics": [
        "summary.gretaR_fit"
      ]
    },
    {
      "page": "uniform",
      "title": "Uniform Distribution",
      "topics": [
        "uniform"
      ]
    },
    {
      "page": "variable",
      "title": "Create a Free Variable",
      "topics": [
        "variable"
      ]
    },
    {
      "page": "variational",
      "title": "Variational Inference (ADVI)",
      "topics": [
        "variational"
      ]
    },
    {
      "page": "wishart",
      "title": "Wishart Distribution",
      "topics": [
        "wishart"
      ]
    }
  ],
  "_pkglogo": "https://github.com/max578/gretaR/raw/main/man/figures/logo.png",
  "_readme": "https://github.com/max578/gretaR/raw/main/README.md",
  "_rundeps": [
    "abind",
    "backports",
    "bit",
    "bit64",
    "callr",
    "checkmate",
    "cli",
    "coro",
    "desc",
    "distributional",
    "farver",
    "generics",
    "glue",
    "jsonlite",
    "labeling",
    "lifecycle",
    "magrittr",
    "matrixStats",
    "numDeriv",
    "otel",
    "pillar",
    "pkgconfig",
    "posterior",
    "processx",
    "ps",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "safetensors",
    "scales",
    "tensorA",
    "tibble",
    "torch",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting Started with gretaR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Installation",
        "Example 1: Estimating a Normal Mean",
        "Example 2: Bayesian Linear Regression",
        "Workflow Summary",
        "Available Distributions",
        "Choosing a Sampler",
        "Next Steps"
      ],
      "created": "2026-04-10 11:21:41",
      "modified": "2026-08-25 09:09:57",
      "commits": 4
    },
    {
      "source": "glm-models.Rmd",
      "filename": "glm-models.html",
      "title": "GLMs with gretaR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Formula Interface",
        "Gaussian Linear Regression",
        "Logistic Regression",
        "Poisson Regression",
        "DSL Interface",
        "Linear Regression (DSL)",
        "Custom Priors",
        "Inference Methods",
        "Model Comparison with loo"
      ],
      "created": "2026-04-10 11:47:15",
      "modified": "2026-08-25 09:09:57",
      "commits": 3
    },
    {
      "source": "hierarchical-models.Rmd",
      "filename": "hierarchical-models.html",
      "title": "Hierarchical Models with gretaR",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Random Intercepts Model",
        "Random Intercepts and Slopes",
        "Using MAP for Quick Estimates",
        "Using Variational Inference",
        "Partially-Centred Random Effects with random_effect()",
        "Formula Interface for Simple Models",
        "Tips for Hierarchical Models",
        "References"
      ],
      "created": "2026-04-10 11:47:15",
      "modified": "2026-08-25 09:09:57",
      "commits": 3
    }
  ],
  "_score": 4.176091259055681,
  "_indexed": true,
  "_nocasepkg": "gretar",
  "_universes": [
    "max578"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-11-27T12:52:31.000Z",
      "distro": "resolute",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/05f609daebbf5fd9e06faa29906cc06c4493100be4a4df67d1d39d3da3a2d413",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-11-27T12:53:41.000Z",
      "distro": "resolute",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/0fb618710ca420cef60f45d0d762057c38d08a15f8ba86c6b020ddf69441385c",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-11-27T12:51:24.000Z",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/fbe54367696450dd88f439b74c06166afb94a006bcad4201d84e7728aafa2101",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-11-27T12:52:17.000Z",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/8908c54863a7e43aa4775e306d6d78026b5e388ce2efe3812a5151030fc038a2",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.2",
      "date": "2026-11-27T12:53:47.000Z",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/ad55bcc062e5ba6c45107b48fd7f251f04f3bc2d7ae981dbbabd4336f07e262e",
      "status": "success",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-11-27T12:53:54.000Z",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/90e0cdb571aa425233856ec435927cea55253ec53265ce8880466e1a0f7e1e26",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-11-27T12:53:38.000Z",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/184fee2877d0bc9184976a02b89ceea66267534a633952a9bda9934e897b3e25",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-11-27T12:53:45.000Z",
      "commit": "c4a1515f527054691ee8a132a2ddf0647d539c40",
      "fileid": "https://r2.ropensci.org/0f077b6821698fe1eb26f41df35e4b1069fe9e8bcf7b61ae8bf57daff2b52257",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/max578/actions/runs/46001237405"
    }
  ]
}