{
  "_id": "6a4ba97da6574ff277f9c99c",
  "Package": "doctest",
  "Type": "Package",
  "Title": "Generate Tests from Examples Using 'roxygen' and 'testthat'",
  "Version": "0.4.0",
  "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",
  "RoxygenNote": "7.2.3",
  "Config/testthat/edition": "3",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://hughjonesd.github.io/doctest/",
  "BugReports": "https://github.com/hughjonesd/doctest/issues",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "cmake make libuv1-dev libxml2-dev",
  "Repository": "https://r-multiverse.r-universe.dev",
  "Date/Publication": "2026-02-19 11:22:42 UTC",
  "RemoteUrl": "https://github.com/hughjonesd/doctest",
  "RemoteRef": "v0.4.0",
  "RemoteSha": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-06 13:07:13 UTC",
    "User": "root"
  },
  "Author": "David Hugh-Jones [aut, cre]",
  "_user": "r-multiverse",
  "_type": "src",
  "_file": "doctest_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/a435e381bc81cbbb48d8b3f597241f0d185cf13258bf5662e23b31e262d44e7f",
  "_filesize": 154892,
  "_sha256": "a435e381bc81cbbb48d8b3f597241f0d185cf13258bf5662e23b31e262d44e7f",
  "_expires": "2026-10-14T13:11:24.000Z",
  "_created": "2026-07-06T13:07:13.000Z",
  "_published": "2026-07-06T13:11:25.693Z",
  "_jobs": [
    {
      "job": 85378916943,
      "time": 176,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8109924683"
    },
    {
      "job": 85378917046,
      "time": 148,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8109904743"
    },
    {
      "job": 85378916922,
      "time": 109,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8109901317"
    },
    {
      "job": 85378916954,
      "time": 82,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8109885360"
    },
    {
      "job": 85378284434,
      "time": 184,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8109838604"
    },
    {
      "job": 85378916952,
      "time": 122,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8109902845"
    },
    {
      "job": 85378917012,
      "time": 91,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8109886999"
    },
    {
      "job": 85378917047,
      "time": 96,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8109886006"
    },
    {
      "job": 85378917003,
      "time": 82,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8109885143"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736",
  "_status": "success",
  "_upstream": "https://github.com/hughjonesd/doctest",
  "_commit": {
    "id": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
    "author": "David Hugh-Jones <davidhughjones@gmail.com>",
    "committer": "David Hugh-Jones <davidhughjones@gmail.com>",
    "message": "clean up .Rbuildignore\n",
    "time": 1771500162
  },
  "_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": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.4.0",
      "date": "2026-02-19"
    }
  ],
  "_stars": 31,
  "_contributors": [
    {
      "user": "hughjonesd",
      "count": 162,
      "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": 36,
    "description": "A community-curated collection of R package releases, powered by R-universe"
  },
  "_downloads": {
    "count": 1419,
    "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",
    "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"
    }
  ],
  "_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"
      ]
    }
  ],
  "_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": 5.898616594395053,
  "_indexed": false,
  "_nocasepkg": "doctest",
  "_universes": [
    "r-multiverse"
  ],
  "_indexurl": "https://hughjonesd.r-universe.dev/doctest",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-07-06T13:10:46.000Z",
      "distro": "resolute",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/31a4c31a3e540082d24ec19629bfb7f084c237726a8c987d075c57fbc9344d1f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-07-06T13:10:01.000Z",
      "distro": "resolute",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/f10830d29c92d39b141819a403e999165e001210ef5562da122338fb20d1c74d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-07-06T13:09:53.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/4e431f3f1e3ee8a361f6d60db1d014472d5571f3a33a8f2a07becd9e9eee7b68",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-07-06T13:09:15.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/9362ad77e7afbf4365caa7f609c9ea9b68abfb850d8e108c84e63d5fd51ea383",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-07-06T13:10:10.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/a09604d961909f7987b5818089a7073f4fd7aa5ec166fe35b216a7084662a686",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-07-06T13:09:08.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/ecb9e58200332d5c7e2ab261209d619dc2912ace7487d19c80030bdd8930fc49",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-07-06T13:09:07.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/9209293ee5831045a2647fe59230bfd0a2a8b18e50f50c292aee1fe28f873437",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-07-06T13:08:59.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/3920fbee20d5291d177c0f7ef96305cc25ae06c4248bc7294f96875c2d63a001",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/28793585736"
    }
  ]
}