{
  "_id": "6a49ac54c8f6781c04fb75d8",
  "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://hughjonesd.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-06-19 08:40:00 UTC",
    "User": "root"
  },
  "Author": "David Hugh-Jones [aut, cre]",
  "_user": "hughjonesd",
  "_type": "src",
  "_file": "doctest_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/ec6bc0b80ef85c872f69ee5b834a996c9532b4c34676656c9653be27b80d04c6",
  "_filesize": 156700,
  "_sha256": "ec6bc0b80ef85c872f69ee5b834a996c9532b4c34676656c9653be27b80d04c6",
  "_expires": "2026-10-13T00:58:58.000Z",
  "_created": "2026-06-19T08:40:00.000Z",
  "_published": "2026-07-05T00:59:00.343Z",
  "_jobs": [
    {
      "job": 85180825245,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745408375"
    },
    {
      "job": 85180825183,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745417538"
    },
    {
      "job": 85180825172,
      "time": 94,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7745391910"
    },
    {
      "job": 85180825241,
      "time": 97,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745392937"
    },
    {
      "job": 85180825055,
      "time": 157,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745359911"
    },
    {
      "job": 85180825254,
      "time": 112,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745398017"
    },
    {
      "job": 85180825167,
      "time": 137,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7745406247"
    },
    {
      "job": 85180825202,
      "time": 69,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7745384058"
    },
    {
      "job": 85180825216,
      "time": 80,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7745387186"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650",
  "_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": "noble",
  "_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": true,
  "_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": 5818871,
    "type": "user",
    "name": "David Hugh-Jones",
    "followers": 94,
    "description": "Social scientist, R hacker"
  },
  "_downloads": {
    "count": 430,
    "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",
    "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"
      ]
    }
  ],
  "_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",
    "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.445604203273597,
  "_indexed": true,
  "_nocasepkg": "doctest",
  "_universes": [
    "hughjonesd"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-19T08:42:21.000Z",
      "distro": "noble",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/120882318f2412bd062a64037b3e36f495bb30c995036889d3f0e013b880d844",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-06-19T08:42:46.000Z",
      "distro": "noble",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/692e4ef2b1062ab102a6358d585f2ee5719fac67848aa964a93294aded7183db",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-19T08:41:36.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/33bf794c4591430226265b879f407c0332331343dce4bb5d88ed7aab9756545e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.4.0",
      "date": "2026-06-19T08:41:35.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/62162975ffdabb9629c3851fcc71466c71b703baaa366ea5aaac0ac5fa921c37",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-06-19T08:42:07.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/e704d36b8f4a870ba512aaa60f9c2a439a9a66caf644a46ae57ff64d7bfc20c1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-19T08:42:08.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/a299be0c5fd14e565eab551ecf77b2e4caf1f6db5b22babd5b717c74532ed585",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-19T08:41:05.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/5982921f5c0bf9c3a80089b7d2b50ac044626e957442d9b95d6dd96da409053b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-06-19T08:41:12.000Z",
      "commit": "ef97b06623b2a07b9ae5cb7ddb16f35993786578",
      "fileid": "https://r2.ropensci.org/ad6b2900783b2a0246d82cd7fc0cdcf29ebb8350f521189c9bf2f3df2133d451",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/hughjonesd/actions/runs/27815072650"
    }
  ]
}