{
  "_id": "6a15e08facfb0bcc41d6af2e",
  "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-05-26 18:00:20 UTC",
    "User": "root"
  },
  "Author": "David Hugh-Jones [aut, cre]",
  "MD5sum": "e492433f814ab8f2a11f4acab3c65e89",
  "_user": "r-multiverse",
  "_type": "src",
  "_file": "doctest_0.4.0.tar.gz",
  "_fileid": "8de049eccf907e29742d2790cc84ff5da18885f8bd1d080da1c6f181f7a9d38c",
  "_filesize": 156144,
  "_sha256": "8de049eccf907e29742d2790cc84ff5da18885f8bd1d080da1c6f181f7a9d38c",
  "_created": "2026-05-26T18:00:20.000Z",
  "_published": "2026-05-26T18:03:59.281Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77925837885,
      "time": 158,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7222320790"
    },
    {
      "job": 77925837787,
      "time": 190,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7222331903"
    },
    {
      "job": 77925837963,
      "time": 105,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7222303564"
    },
    {
      "job": 77925837784,
      "time": 89,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7222298538"
    },
    {
      "job": 77925342281,
      "time": 159,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7222265955"
    },
    {
      "job": 77925838043,
      "time": 142,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7222316596"
    },
    {
      "job": 77925837870,
      "time": 76,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7222293715"
    },
    {
      "job": 77925837831,
      "time": 80,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7222295183"
    },
    {
      "job": 77925837802,
      "time": 74,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7222293415"
    }
  ],
  "_buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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",
    "description": "A community-curated collection of R package releases, powered by R-universe"
  },
  "_downloads": {
    "count": 347,
    "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.0",
  "_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",
    "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"
      ]
    }
  ],
  "_readme": "https://github.com/hughjonesd/doctest/raw/v0.4.0/README.md",
  "_rundeps": [
    "brew",
    "brio",
    "callr",
    "cli",
    "commonmark",
    "cpp11",
    "crayon",
    "desc",
    "diffobj",
    "evaluate",
    "fs",
    "glue",
    "highr",
    "jsonlite",
    "knitr",
    "lifecycle",
    "magrittr",
    "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.445604203273597,
  "_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-05-26T18:02:51.000Z",
      "distro": "noble",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "397e41836181b591bc6f6ac6b59b8eb86c1a98ef238795cf936ab658f21fa4b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-05-26T18:03:25.000Z",
      "distro": "noble",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "a69df777da09482a816f88fb0c37149d1a779416d532f6a10bd71ea605334f12",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-26T18:02:03.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "75cdd634986b25258979ec3e74e10d9cb6bed3ec8127bba85a7b6aea0a851c06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-05-26T18:01:52.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "ea1fa69c8677bbb87091e4302d8b8e4ec03cf866c9a003b6a0e72ded4b12c875",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-05-26T18:02:59.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "702d0204103436cf14757676327537c9e84063f7a851413e73d25c12094ec046",
      "status": "success",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-26T18:01:29.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "ca8695ed00f74fe6d9631b60effc3db8a310d166da9feb1f55bc8c13422c6b0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-26T18:01:33.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "3b8851a136475cd37b5c3b76942e2c90a6ee6bfc2e68589399194c5538c9c350",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-05-26T18:01:28.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "5085166d99f3e60c1ba208f6a96b50c8757abce8f21e0d00ffef735e54ee6348",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/r-multiverse/actions/runs/26465719794"
    }
  ]
}