{
  "_id": "6ae20b958d250e7ad09ee9a3",
  "Package": "rstantools",
  "Type": "Package",
  "Title": "Tools for Developing R Packages Interfacing with 'Stan'",
  "Version": "2.7.1",
  "Date": "2026-07-25",
  "Authors@R": "c(person(given = \"Jonah\",\nfamily = \"Gabry\",\nrole = \"aut\",\nemail = \"jgabry@gmail.com\"),\nperson(given = \"Ben\",\nfamily = \"Goodrich\",\nrole = \"aut\",\nemail = \"benjamin.goodrich@columbia.edu\"),\nperson(given = \"Martin\",\nfamily = \"Lysy\",\nrole = \"aut\",\nemail = \"mlysy@uwaterloo.ca\"),\nperson(given = \"Andrew\",\nfamily = \"Johnson\",\nrole = c(\"aut\", \"cre\"),\nemail = \"andrew.johnson@arjohnsonau.com\"),\nperson(given = \"Hamada S.\",\nfamily = \"Badr\",\nrole = \"ctb\"),\nperson(given = \"Marco\",\nfamily = \"Colombo\",\nrole = \"ctb\"),\nperson(given = \"Stefan\",\nfamily = \"Siegert\",\nrole = \"ctb\"),\nperson(given = \"Visruth\",\nfamily = \"Srimath Kandali\",\nrole = \"ctb\"),\nperson(given = \"Trustees of\",\nfamily = \"Columbia University\",\nrole = \"cph\"))",
  "Description": "Provides various tools for developers of R packages\ninterfacing with 'Stan' <https://mc-stan.org>, including\nfunctions to set up the required package structure, S3 generics\nand default methods to unify function naming across\n'Stan'-based R packages, and vignettes with recommendations for\ndevelopers.",
  "License": "GPL (>=3)",
  "URL": "https://mc-stan.org/rstantools/, https://discourse.mc-stan.org/",
  "BugReports": "https://github.com/stan-dev/rstantools/issues",
  "Encoding": "UTF-8",
  "SystemRequirements": "pandoc",
  "VignetteBuilder": "knitr",
  "Roxygen": "list(markdown = TRUE)",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "cmake make",
  "Repository": "https://stan-dev.r-universe.dev",
  "Date/Publication": "2026-09-28 00:26:33 UTC",
  "RemoteUrl": "https://github.com/stan-dev/rstantools",
  "RemoteRef": "HEAD",
  "RemoteSha": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-28 07:10:53 UTC",
    "User": "root"
  },
  "Author": "Jonah Gabry [aut],\nBen Goodrich [aut],\nMartin Lysy [aut],\nAndrew Johnson [aut, cre],\nHamada S. Badr [ctb],\nMarco Colombo [ctb],\nStefan Siegert [ctb],\nVisruth Srimath Kandali [ctb],\nTrustees of Columbia University [cph]",
  "Maintainer": "Andrew Johnson <andrew.johnson@arjohnsonau.com>",
  "_user": "stan-dev",
  "_type": "src",
  "_file": "rstantools_2.7.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/5508229ae020942ad920921ccc6274e7ee27a69964f786ea1d381870c0c9b945",
  "_filesize": 724507,
  "_sha256": "5508229ae020942ad920921ccc6274e7ee27a69964f786ea1d381870c0c9b945",
  "_expires": "2027-02-05T07:30:19.000Z",
  "_created": "2026-10-28T07:10:53.000Z",
  "_published": "2026-10-28T14:49:57.049Z",
  "_upstream": "https://github.com/stan-dev/rstantools",
  "_status": "success",
  "_maintainer": {
    "name": "Andrew Johnson",
    "email": "andrew.johnson@arjohnsonau.com",
    "login": "andrjohns",
    "description": "",
    "uuid": 27717896
  },
  "_jobs": [
    {
      "job": 122889953959,
      "time": 160,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12797934068"
    },
    {
      "job": 122889955086,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12798596731"
    },
    {
      "job": 122889955744,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12799080740"
    },
    {
      "job": 122889954409,
      "time": 510,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12799471476"
    },
    {
      "job": 122889954292,
      "time": 317,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12798721188"
    },
    {
      "job": 122889951981,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12824719027"
    },
    {
      "job": 122889951790,
      "time": 165,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12824839542"
    },
    {
      "job": 122889955060,
      "time": 75,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12798701395"
    },
    {
      "job": 122889954098,
      "time": 95,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12799005504"
    }
  ],
  "_buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430",
  "_commit": {
    "id": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
    "author": "Visruth Srimath Kandali <public@visruth.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #162 from stan-dev/update-pkgdown-navbar\n\nInherit navbar from template",
    "time": 1790555193
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "desc",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "Rcpp",
      "version": ">= 0.12.16",
      "role": "Imports"
    },
    {
      "package": "RcppParallel",
      "version": ">= 5.0.1",
      "role": "Imports"
    },
    {
      "package": "QuickJSR",
      "role": "Imports"
    },
    {
      "package": "rstan",
      "version": ">= 2.17.2",
      "role": "Suggests"
    },
    {
      "package": "usethis",
      "version": ">= 1.5.1",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 2.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pkgbuild",
      "role": "Suggests"
    },
    {
      "package": "pkgload",
      "role": "Suggests"
    },
    {
      "package": "roxygen2",
      "version": ">= 7.0.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rstudioapi",
      "role": "Suggests"
    }
  ],
  "_owner": "stan-dev",
  "_selfowned": true,
  "_usedby": 259,
  "_updates": [
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2025-49",
      "n": 3
    },
    {
      "week": "2025-50",
      "n": 3
    },
    {
      "week": "2026-01",
      "n": 2
    },
    {
      "week": "2026-02",
      "n": 2
    },
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-26",
      "n": 1
    },
    {
      "week": "2026-30",
      "n": 4
    },
    {
      "week": "2026-35",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v2.6.0",
      "date": "2026-01-10"
    },
    {
      "name": "v2.7.0",
      "date": "2026-07-25"
    }
  ],
  "_topics": [
    "bayesian-data-analysis",
    "bayesian-statistics",
    "developer-tools",
    "stan"
  ],
  "_stars": 49,
  "_contributors": [
    {
      "user": "jgabry",
      "count": 284,
      "uuid": 7796803
    },
    {
      "user": "mlysy",
      "count": 75,
      "uuid": 10173557
    },
    {
      "user": "andrjohns",
      "count": 51,
      "uuid": 27717896
    },
    {
      "user": "bgoodri",
      "count": 34,
      "uuid": 3386282
    },
    {
      "user": "visruthsk",
      "count": 25,
      "uuid": 67435125
    },
    {
      "user": "mcol",
      "count": 8,
      "uuid": 6078177
    },
    {
      "user": "teemusailynoja",
      "count": 5,
      "uuid": 33978952
    },
    {
      "user": "avehtari",
      "count": 3,
      "uuid": 6705400
    },
    {
      "user": "karchjd",
      "count": 2,
      "uuid": 8561155
    },
    {
      "user": "kleinschmidt",
      "count": 1,
      "uuid": 135920
    },
    {
      "user": "hsbadr",
      "count": 1,
      "uuid": 7604200
    },
    {
      "user": "mikekaminsky",
      "count": 1,
      "uuid": 5394529
    },
    {
      "user": "mansmeg",
      "count": 1,
      "uuid": 2458198
    },
    {
      "user": "ndunnewind",
      "count": 1,
      "uuid": 43117768
    },
    {
      "user": "paul-buerkner",
      "count": 1,
      "uuid": 12938496
    },
    {
      "user": "raerickson",
      "count": 1,
      "uuid": 11819537
    },
    {
      "user": "sieste",
      "count": 1,
      "uuid": 3732635
    },
    {
      "user": "jeffeaton",
      "count": 1,
      "uuid": 7427899
    },
    {
      "user": "ecmerkle",
      "count": 1,
      "uuid": 4818626
    }
  ],
  "_userbio": {
    "uuid": 3374820,
    "type": "organization",
    "name": "Stan",
    "followers": 562
  },
  "_downloads": {
    "count": 210319,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rstantools"
  },
  "_devurl": "https://github.com/stan-dev/rstantools",
  "_pkgdown": "https://mc-stan.org/rstantools/",
  "_searchresults": 172,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/rstantools.html"
  ],
  "_homeurl": "https://github.com/stan-dev/rstantools",
  "_realowner": "stan-dev",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2016-11-20"
    },
    {
      "version": "1.1.0",
      "date": "2016-12-20"
    },
    {
      "version": "1.2.0",
      "date": "2017-03-17"
    },
    {
      "version": "1.3.0",
      "date": "2017-08-02"
    },
    {
      "version": "1.4.0",
      "date": "2017-12-21"
    },
    {
      "version": "1.5.0",
      "date": "2018-04-17"
    },
    {
      "version": "1.5.1",
      "date": "2018-08-22"
    },
    {
      "version": "2.0.0",
      "date": "2019-09-15"
    },
    {
      "version": "2.1.0",
      "date": "2020-06-01"
    },
    {
      "version": "2.1.1",
      "date": "2020-07-06"
    },
    {
      "version": "2.2.0",
      "date": "2022-04-08"
    },
    {
      "version": "2.3.0",
      "date": "2023-03-09"
    },
    {
      "version": "2.3.1",
      "date": "2023-03-30"
    },
    {
      "version": "2.3.1.1",
      "date": "2023-07-18"
    },
    {
      "version": "2.4.0",
      "date": "2024-01-31"
    },
    {
      "version": "2.5.0",
      "date": "2025-09-01"
    },
    {
      "version": "2.6.0",
      "date": "2026-01-10"
    },
    {
      "version": "2.7.0",
      "date": "2026-07-26"
    },
    {
      "version": "2.7.1",
      "date": "2026-08-29"
    }
  ],
  "_exports": [
    "bayes_R2",
    "init_cpp",
    "log_lik",
    "loo_epred",
    "loo_linpred",
    "loo_pit",
    "loo_predict",
    "loo_predictive_interval",
    "loo_R2",
    "nsamples",
    "posterior_epred",
    "posterior_interval",
    "posterior_linpred",
    "posterior_predict",
    "predictive_error",
    "predictive_interval",
    "prior_summary",
    "rstan_config",
    "rstan_create_package",
    "rstantools_load_code",
    "use_rstan"
  ],
  "_help": [
    {
      "page": "rstantools-package",
      "title": "Tools for Developing R Packages Interfacing with Stan",
      "topics": [
        "rstantools-package",
        "rstantools"
      ]
    },
    {
      "page": "bayes_R2",
      "title": "Generic function and default method for Bayesian R-squared",
      "topics": [
        "bayes_R2",
        "bayes_R2.default",
        "loo_R2"
      ]
    },
    {
      "page": "log_lik",
      "title": "Generic function for pointwise log-likelihood",
      "topics": [
        "log_lik"
      ]
    },
    {
      "page": "loo-prediction",
      "title": "Generic functions for LOO predictions",
      "topics": [
        "loo-prediction",
        "loo_epred",
        "loo_linpred",
        "loo_pit",
        "loo_pit.default",
        "loo_predict",
        "loo_predictive_interval"
      ]
    },
    {
      "page": "posterior_epred",
      "title": "Generic function for accessing the posterior distribution of the conditional expectation",
      "topics": [
        "posterior_epred"
      ]
    },
    {
      "page": "posterior_interval",
      "title": "Generic function and default method for posterior uncertainty intervals",
      "topics": [
        "posterior_interval",
        "posterior_interval.default"
      ]
    },
    {
      "page": "posterior_linpred",
      "title": "Generic function for accessing the posterior distribution of the linear predictor",
      "topics": [
        "posterior_linpred"
      ]
    },
    {
      "page": "posterior_predict",
      "title": "Generic function for drawing from the posterior predictive distribution",
      "topics": [
        "posterior_predict"
      ]
    },
    {
      "page": "predictive_error",
      "title": "Generic function and default method for predictive errors",
      "topics": [
        "predictive_error",
        "predictive_error.default"
      ]
    },
    {
      "page": "predictive_interval",
      "title": "Generic function for predictive intervals",
      "topics": [
        "predictive_interval",
        "predictive_interval.default"
      ]
    },
    {
      "page": "prior_summary",
      "title": "Generic function for extracting information about prior distributions",
      "topics": [
        "prior_summary",
        "prior_summary.default"
      ]
    },
    {
      "page": "rstan_config",
      "title": "Configure system files for compiling Stan source code",
      "topics": [
        "rstan_config"
      ]
    },
    {
      "page": "rstan_create_package",
      "title": "Create a new R package with compiled Stan programs",
      "topics": [
        "rstan_create_package",
        "rstan_package_skeleton"
      ]
    },
    {
      "page": "rstantools_load_code",
      "title": "Helper function for loading code in roxygenise",
      "topics": [
        "rstantools_load_code"
      ]
    },
    {
      "page": "use_rstan",
      "title": "Add Stan infrastructure to an existing package",
      "topics": [
        "use_rstan"
      ]
    }
  ],
  "_pkglogo": "https://github.com/stan-dev/rstantools/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/stan-dev/rstantools/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "desc",
    "QuickJSR",
    "R6",
    "Rcpp",
    "RcppParallel"
  ],
  "_vignettes": [
    {
      "source": "developer-guidelines.Rmd",
      "filename": "developer-guidelines.html",
      "title": "Guidelines for Developers of R Packages Interfacing with Stan",
      "author": "Stan Development Team",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Note to developers",
        "Guidelines for R packages providing interfaces to Stan",
        "General package structure and development",
        "Stan code",
        "R code and documentation",
        "Recommended resources"
      ],
      "created": "2016-10-28 20:38:30",
      "modified": "2022-03-23 19:10:25",
      "commits": 21
    },
    {
      "source": "minimal-rstan-package.Rmd",
      "filename": "minimal-rstan-package.html",
      "title": "Step by step guide for creating a package that depends on RStan",
      "author": "Stefan Siegert, Jonah Gabry, Martin Lysy, and Ben Goodrich",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Creating the package skeleton",
        "Read-and-delete-me file",
        "Stan files",
        "R files",
        "Documentation",
        "Install and use",
        "Advanced options",
        "Adding additional Stan models to an existing R package with Stan models",
        "Links"
      ],
      "created": "2018-04-09 22:26:56",
      "modified": "2026-07-20 16:51:33",
      "commits": 27
    }
  ],
  "_score": 14.394296559011266,
  "_indexed": true,
  "_nocasepkg": "rstantools",
  "_universes": [
    "stan-dev",
    "andrjohns"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.7.1",
      "date": "2026-10-28T07:14:55.000Z",
      "distro": "resolute",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/86c87f6d1cd6de2f2c54aeab82225a86616e23655b61fea91b394840c2953c9a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.7.1",
      "date": "2026-10-28T07:14:36.000Z",
      "distro": "resolute",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/12cc1e52e5f0dfa826b7f09457ab0eede5269dfd8c87142d65c042096c81a996",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.7.1",
      "date": "2026-10-28T07:16:40.000Z",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/33ed34de7ce098e53ef382166a804e2632647be2a95779f22175c44e0f5780ec",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.7.1",
      "date": "2026-10-28T07:21:06.000Z",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/8ed31b1bf313982ba0e298a66d6ad67d5bbf83ae512cf55e3d3486f31356393c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.7.1",
      "date": "2026-10-28T14:48:51.000Z",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/a3ec8ced2af6cf97bdb3fd099e09b17e0f7a1dfa34e65657254ad378d4bf3ced",
      "status": "success",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.7.1",
      "date": "2026-10-28T14:49:12.000Z",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/8c141eaa26700953fbf4fa11cb42e5d27b203f8e2499d5fed96fa8e3affa7459",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.7.1",
      "date": "2026-10-28T07:13:34.000Z",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/ea23ecf9dc99a9d3675ae97469392ce7a0ad7761f0f30e0d9bbdf01870792c65",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.7.1",
      "date": "2026-10-28T07:13:50.000Z",
      "commit": "25541eb232b1325552e3ec698bcfd53fddbf77ce",
      "fileid": "https://r2.ropensci.org/b682578fe85e7221c91230f74ca89cc18f85b97e9e3c1610807cd94065c21b11",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/stan-dev/actions/runs/40648004430"
    }
  ]
}