{
  "_id": "6a6a770a32b582e74cfd326d",
  "Package": "doctest",
  "Type": "Package",
  "Title": "Generate Tests from Examples Using 'roxygen' and 'testthat'",
  "Version": "0.4.1",
  "Authors@R": "person(\"David\", \"Hugh-Jones\",\nemail = \"davidhughjones@gmail.com\",\nrole = c(\"aut\", \"cre\"))",
  "Maintainer": "David Hugh-Jones <davidhughjones@gmail.com>",
  "Description": "Creates 'testthat' tests from 'roxygen' examples using\nsimple tags.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Config/testthat/edition": "3",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://hughjonesd.github.io/doctest/",
  "BugReports": "https://github.com/hughjonesd/doctest/issues",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "cmake make libuv1-dev libxml2-dev",
  "Repository": "https://r-multiverse-staging.r-universe.dev",
  "Date/Publication": "2026-07-29 19:16:27 UTC",
  "RemoteUrl": "https://github.com/hughjonesd/doctest",
  "RemoteRef": "v0.4.1",
  "RemoteSha": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-29 21:47:23 UTC",
    "User": "root"
  },
  "Author": "David Hugh-Jones [aut, cre]",
  "_user": "r-multiverse-staging",
  "_type": "src",
  "_file": "doctest_0.4.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/efcfd82cb88fe0ee8dbf21953d83ff4cbec87b92173ada04a4aa041020d2673a",
  "_filesize": 156547,
  "_sha256": "efcfd82cb88fe0ee8dbf21953d83ff4cbec87b92173ada04a4aa041020d2673a",
  "_expires": "2026-11-06T21:56:24.000Z",
  "_created": "2026-07-29T21:47:23.000Z",
  "_published": "2026-07-29T21:56:26.217Z",
  "_jobs": [
    {
      "job": 90717514719,
      "time": 400,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8740897769"
    },
    {
      "job": 90717514770,
      "time": 123,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8740785022"
    },
    {
      "job": 90717514711,
      "time": 103,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8740776419"
    },
    {
      "job": 90717514734,
      "time": 114,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8740781541"
    },
    {
      "job": 90716906087,
      "time": 176,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8740734179"
    },
    {
      "job": 90717514728,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8740781866"
    },
    {
      "job": 90717514741,
      "time": 496,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8740935293"
    },
    {
      "job": 90717514707,
      "time": 83,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8740768431"
    },
    {
      "job": 90717514709,
      "time": 75,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8740764915"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588",
  "_status": "success",
  "_upstream": "https://github.com/hughjonesd/doctest",
  "_commit": {
    "id": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
    "author": "David Hugh-Jones <davidhughjones@gmail.com>",
    "committer": "David Hugh-Jones <davidhughjones@gmail.com>",
    "message": "Tweak cran-comments\n",
    "time": 1785352587
  },
  "_maintainer": {
    "name": "David Hugh-Jones",
    "email": "davidhughjones@gmail.com",
    "login": "hughjonesd",
    "twitter": "@davidhughjones",
    "description": "Social scientist, R hacker",
    "uuid": 5818871
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "fs",
      "role": "Imports"
    },
    {
      "package": "pkgload",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "roxygen2",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lifecycle",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "hughjonesd",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-07",
      "n": 1
    },
    {
      "week": "2026-08",
      "n": 4
    },
    {
      "week": "2026-31",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-02-19"
    },
    {
      "name": "v0.4.1",
      "date": "2026-07-29"
    }
  ],
  "_stars": 31,
  "_contributors": [
    {
      "user": "hughjonesd",
      "count": 167,
      "uuid": 5818871
    },
    {
      "user": "mlopez-ibanez",
      "count": 10,
      "uuid": 2620021
    },
    {
      "user": "copilot",
      "count": 3,
      "uuid": 198982749
    },
    {
      "user": "hadley",
      "count": 1,
      "uuid": 4196
    }
  ],
  "_userbio": {
    "uuid": 161461790,
    "type": "organization",
    "name": "R-multiverse",
    "followers": 37,
    "description": "A community-curated collection of R package releases, powered by R-universe"
  },
  "_downloads": {
    "count": 1205,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/doctest"
  },
  "_devurl": "https://github.com/hughjonesd/doctest",
  "_pkgdown": "https://hughjonesd.github.io/doctest/",
  "_searchresults": 3,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/doctest.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/hughjonesd/doctest",
  "_realowner": "hughjonesd",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.0",
      "date": "2023-04-28"
    },
    {
      "version": "0.3.0",
      "date": "2024-01-11"
    },
    {
      "version": "0.4.0",
      "date": "2026-02-19"
    },
    {
      "version": "0.4.1",
      "date": "2026-07-29"
    }
  ],
  "_exports": [
    "dt_roclet",
    "test_doctests"
  ],
  "_help": [
    {
      "page": "doctest-package",
      "title": "Write testthat tests for your examples, using roxygen tags",
      "topics": [
        "doctest-package",
        "doctest"
      ]
    },
    {
      "page": "doctest-tag",
      "title": "Start a doctest",
      "topics": [
        "@doctest",
        "doctest-tag"
      ]
    },
    {
      "page": "doctestExample-tag",
      "title": "Add an example from a file",
      "topics": [
        "@doctestExample",
        "doctestExample-tag"
      ]
    },
    {
      "page": "dt_roclet",
      "title": "Create the doctest roclet",
      "topics": [
        "dt_roclet"
      ]
    },
    {
      "page": "expect-tag",
      "title": "Create an expectation",
      "concept": [
        "expectations"
      ],
      "topics": [
        "@expect",
        "expect-tag"
      ]
    },
    {
      "page": "expectRaw-tag",
      "title": "Create an expectation as-is",
      "concept": [
        "expectations"
      ],
      "topics": [
        "@expectRaw",
        "expectRaw-tag"
      ]
    },
    {
      "page": "omit-tag",
      "title": "Exclude example code from a test",
      "topics": [
        "@omit",
        "@resume",
        "omit-tag",
        "resume-tag"
      ]
    },
    {
      "page": "snap-tag",
      "title": "Create a snapshot test",
      "concept": [
        "expectations"
      ],
      "topics": [
        "@snap",
        "snap-tag"
      ]
    },
    {
      "page": "test_doctests",
      "title": "Test doctests in a package",
      "topics": [
        "test_doctests"
      ]
    },
    {
      "page": "testRaw-tag",
      "title": "Add a line of code to the test",
      "topics": [
        "@testRaw",
        "testRaw-tag"
      ]
    }
  ],
  "_readme": "https://github.com/hughjonesd/doctest/raw/v0.4.1/README.md",
  "_rundeps": [
    "brew",
    "brio",
    "callr",
    "cli",
    "commonmark",
    "cpp11",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "fs",
    "glue",
    "highr",
    "jsonlite",
    "knitr",
    "lifecycle",
    "magrittr",
    "otel",
    "pkgbuild",
    "pkgload",
    "praise",
    "processx",
    "ps",
    "purrr",
    "R6",
    "rlang",
    "roxygen2",
    "rprojroot",
    "testthat",
    "vctrs",
    "waldo",
    "withr",
    "xfun",
    "xml2",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "conversion.Rmd",
      "filename": "conversion.html",
      "title": "Converting a package to use doctest",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Setting up doctest",
        "Converting @examples to @doctest sections",
        "Before",
        "After",
        "Creating doctests by adding expectations",
        "Doctests for messaging functions",
        "Adding doctests for utility functions",
        "Adding doctest to Suggests:",
        "Conclusion"
      ],
      "created": "2022-12-14 19:29:07",
      "modified": "2025-12-04 22:36:17",
      "commits": 7
    },
    {
      "source": "doctest.Rmd",
      "filename": "doctest.html",
      "title": "doctest",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction to doctest",
        "Adding doctests to your package",
        "Tags",
        "@doctest",
        "@expect",
        "@expectRaw",
        "@snap",
        "@testRaw",
        "@omit and @resume",
        "@doctestExample",
        "Caveats",
        "Writing good doctests",
        "Related packages"
      ],
      "created": "2022-11-25 18:53:04",
      "modified": "2023-04-28 20:32:45",
      "commits": 18
    }
  ],
  "_score": 6.651529986792784,
  "_indexed": false,
  "_nocasepkg": "doctest",
  "_universes": [
    "r-multiverse-staging"
  ],
  "_indexurl": "https://hughjonesd.r-universe.dev/doctest",
  "_previous": "0.4.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-07-29T21:53:57.000Z",
      "distro": "resolute",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/6461d8c9540f3b7ffd035f92909ab0bb08ed433fce83e5f0707853b4cbea6b0e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.1",
      "date": "2026-07-29T21:49:22.000Z",
      "distro": "resolute",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/c5887ce043e1ddc4ff7114f0fcf7b9550931855c47bd15ff8a9640ae41d6ef12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.1",
      "date": "2026-07-29T21:49:00.000Z",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/75583053faca3cd33014a6294f8fc253e7dbcd8c9e827cdf8a6037eb86e3f928",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.1",
      "date": "2026-07-29T21:49:15.000Z",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/496f9dfdc33faa727345e6814472e537e92e3354264b416b9285c2e055429ca0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.1",
      "date": "2026-07-29T21:49:32.000Z",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/2b1094d155ec7f0d3cd522e02af3ca1c22973f1c901388cdaaee7a9f455b937f",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-07-29T21:55:22.000Z",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/0f0b0f08da31c141482ef681da8c2bcbde27c48663a7a1cf0a8b6b801c3789ca",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-07-29T21:48:37.000Z",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/fa30240b9d4d1bc1d4370104a51aa2e15d8e750587cef69ce86640d36cfd2fdc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.1",
      "date": "2026-07-29T21:48:30.000Z",
      "commit": "7c66bdbe6352d8339cf977f3a3d40d7c0af9a475",
      "fileid": "https://r2.ropensci.org/e854a393aaed315f9200461625bf49a49dec106d8e3f71649229a67a0c84cfb2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse-staging/actions/runs/30493507588"
    }
  ]
}