{
  "_id": "6ad09997576abc75bd5cd687",
  "Package": "webmockr",
  "Title": "Stubbing and Setting Expectations on 'HTTP' Requests",
  "Description": "Stubbing and setting expectations on 'HTTP' requests.\nIncludes tools for stubbing 'HTTP' requests, including expected\nrequest conditions and response conditions. Match on 'HTTP'\nmethod, query parameters, request body, headers and more. Can\nbe used for unit tests or outside of a testing context.",
  "Version": "2.2.1.92",
  "Authors@R": "c(\nperson(\"Scott\", \"Chamberlain\", role = c(\"aut\", \"cre\"), email =\n\"myrmecocystus+r@gmail.com\", comment = c(ORCID=\"0000-0003-1444-9135\")),\nperson(\"Aaron\", \"Wolen\", role = \"ctb\",\ncomment = c(ORCID=\"0000-0003-2542-2202\")),\nperson(\"rOpenSci\", role = \"fnd\", comment = c(ROR = \"019jywm96\"))\n)",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/ropensci/webmockr,\nhttps://books.ropensci.org/http-testing/,\nhttps://docs.ropensci.org/webmockr/",
  "BugReports": "https://github.com/ropensci/webmockr/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "Config/roxygen2/version": "8.1.0",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libssl-dev",
  "Repository": "https://ropensci.r-universe.dev",
  "Date/Publication": "2026-08-16 05:00:07 UTC",
  "RemoteUrl": "https://github.com/ropensci/webmockr",
  "RemoteRef": "main",
  "RemoteSha": "128d87b721c1e03bcc031702f2d1692838507f83",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-15 08:45:57 UTC",
    "User": "root"
  },
  "Author": "Scott Chamberlain [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1444-9135>),\nAaron Wolen [ctb] (ORCID: <https://orcid.org/0000-0003-2542-2202>),\nrOpenSci [fnd] (ROR: <https://ror.org/019jywm96>)",
  "Maintainer": "Scott Chamberlain <myrmecocystus+r@gmail.com>",
  "_user": "ropensci",
  "_type": "src",
  "_file": "webmockr_2.2.1.92.tar.gz",
  "_fileid": "https://r2.ropensci.org/745b5de88bd68db3359cc7599c8edd31db2c176e9d8523eb45702108769a5f28",
  "_filesize": 434963,
  "_sha256": "745b5de88bd68db3359cc7599c8edd31db2c176e9d8523eb45702108769a5f28",
  "_expires": "2027-01-23T09:15:01.000Z",
  "_created": "2026-10-15T08:45:57.000Z",
  "_published": "2026-10-15T09:15:03.743Z",
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 116332293431,
      "time": 157,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11958879397"
    },
    {
      "job": 116332293474,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11959067402"
    },
    {
      "job": 116332293395,
      "time": 113,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11960661671"
    },
    {
      "job": 116332293435,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11960274412"
    },
    {
      "job": 116331075801,
      "time": 196,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11958922396"
    },
    {
      "job": 116331075683,
      "time": 178,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11959121871"
    },
    {
      "job": 116332293468,
      "time": 92,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11958872782"
    },
    {
      "job": 116332293455,
      "time": 99,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11959596183"
    },
    {
      "job": 116332293407,
      "time": 115,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11959785739"
    },
    {
      "job": 116332293540,
      "time": 94,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11959182046"
    }
  ],
  "_upstream": "https://github.com/ropensci/webmockr",
  "_commit": {
    "id": "128d87b721c1e03bcc031702f2d1692838507f83",
    "author": "Scott Chamberlain <sckott@fastmail.com>",
    "committer": "Scott Chamberlain <sckott@fastmail.com>",
    "message": "fix articles navbar string\n",
    "time": 1786856407
  },
  "_maintainer": {
    "name": "Scott Chamberlain",
    "email": "myrmecocystus+r@gmail.com",
    "login": "sckott",
    "mastodon": "@sckottie@hachyderm.io",
    "bluesky": "@sckott.bsky.social",
    "orcid": "0000-0003-1444-9135",
    "description": "Software Engineer @ Fred Hutch",
    "uuid": 577668
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 1.5",
      "role": "Imports"
    },
    {
      "package": "R6",
      "version": ">= 2.1.3",
      "role": "Imports"
    },
    {
      "package": "urltools",
      "version": ">= 1.6.0",
      "role": "Imports"
    },
    {
      "package": "fauxpas",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "xml2",
      "role": "Suggests"
    },
    {
      "package": "crul",
      "role": "Suggests"
    },
    {
      "package": "httr",
      "role": "Suggests"
    },
    {
      "package": "httr2",
      "role": "Suggests"
    },
    {
      "package": "diffobj",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "ropensci",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-32",
      "n": 2
    },
    {
      "week": "2026-33",
      "n": 7
    }
  ],
  "_tags": [],
  "_topics": [
    "http",
    "https",
    "api",
    "web-services",
    "curl",
    "mock",
    "mocking",
    "fakeweb",
    "http-mocking",
    "testing",
    "testing-tools",
    "tdd",
    "http-mock"
  ],
  "_stars": 50,
  "_contributors": [
    {
      "user": "sckott",
      "count": 555,
      "uuid": 577668
    },
    {
      "user": "aaronwolen",
      "count": 32,
      "uuid": 1067915
    },
    {
      "user": "hadley",
      "count": 5,
      "uuid": 4196
    },
    {
      "user": "jeroen",
      "count": 3,
      "uuid": 216319
    },
    {
      "user": "maelle",
      "count": 3,
      "uuid": 8360597
    },
    {
      "user": "bisaloo",
      "count": 1,
      "uuid": 10783929
    }
  ],
  "_userbio": {
    "uuid": 1200269,
    "type": "organization",
    "name": "rOpenSci",
    "followers": 1163,
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 2771,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/webmockr"
  },
  "_devurl": "https://github.com/ropensci/webmockr",
  "_pkgdown": "https://docs.ropensci.org/webmockr",
  "_searchresults": 151,
  "_metadata": {
    "ropensci_category": "http-tools"
  },
  "_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/webmockr.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/ropensci/webmockr",
  "_realowner": "ropensci",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2017-05-20"
    },
    {
      "version": "0.2.0",
      "date": "2018-03-02"
    },
    {
      "version": "0.2.4",
      "date": "2018-05-08"
    },
    {
      "version": "0.2.6",
      "date": "2018-05-17"
    },
    {
      "version": "0.2.8",
      "date": "2018-10-19"
    },
    {
      "version": "0.2.9",
      "date": "2018-11-06"
    },
    {
      "version": "0.3.0",
      "date": "2019-01-09"
    },
    {
      "version": "0.3.4",
      "date": "2019-02-09"
    },
    {
      "version": "0.4.0",
      "date": "2019-08-09"
    },
    {
      "version": "0.5.0",
      "date": "2019-12-05"
    },
    {
      "version": "0.6.0",
      "date": "2020-03-02"
    },
    {
      "version": "0.6.2",
      "date": "2020-03-24"
    },
    {
      "version": "0.7.0",
      "date": "2020-09-30"
    },
    {
      "version": "0.7.4",
      "date": "2020-12-09"
    },
    {
      "version": "0.8.0",
      "date": "2021-03-14"
    },
    {
      "version": "0.8.2",
      "date": "2022-08-28"
    },
    {
      "version": "0.9.0",
      "date": "2023-02-28"
    },
    {
      "version": "1.0.0",
      "date": "2024-07-23"
    },
    {
      "version": "2.0.0",
      "date": "2025-02-11"
    },
    {
      "version": "2.1.0",
      "date": "2025-06-29"
    },
    {
      "version": "2.2.0",
      "date": "2025-07-21"
    }
  ],
  "_exports": [
    "%>%",
    "build_crul_response",
    "build_httr_response",
    "build_httr2_request",
    "build_httr2_response",
    "CrulAdapter",
    "disable",
    "enable",
    "enabled",
    "excluding",
    "httr_mock",
    "httr2_mock",
    "Httr2Adapter",
    "HttrAdapter",
    "including",
    "last_request",
    "last_stub",
    "mock_file",
    "pluck_body",
    "remove_request_stub",
    "request_registry",
    "request_registry_clear",
    "request_registry_filter",
    "RequestSignature",
    "Response",
    "stub_body_diff",
    "stub_registry",
    "stub_registry_clear",
    "stub_request",
    "to_raise",
    "to_return",
    "to_return_",
    "to_timeout",
    "webmockr_allow_net_connect",
    "webmockr_configuration",
    "webmockr_configure",
    "webmockr_configure_reset",
    "webmockr_crul_fetch",
    "webmockr_disable",
    "webmockr_disable_net_connect",
    "webmockr_enable",
    "webmockr_net_connect_allowed",
    "webmockr_reset",
    "wi_th",
    "wi_th_"
  ],
  "_help": [
    {
      "page": "enable",
      "title": "Enable or disable webmockr",
      "topics": [
        "disable",
        "enable",
        "enabled"
      ]
    },
    {
      "page": "httr_mock",
      "title": "Turn on 'httr' mocking",
      "topics": [
        "httr_mock"
      ]
    },
    {
      "page": "httr2_mock",
      "title": "Turn on 'httr2' mocking",
      "topics": [
        "httr2_mock"
      ]
    },
    {
      "page": "including",
      "title": "Partially match request query parameters or request bodies",
      "topics": [
        "excluding",
        "including",
        "partial"
      ]
    },
    {
      "page": "last_request",
      "title": "Get the last HTTP request made",
      "topics": [
        "last_request"
      ]
    },
    {
      "page": "last_stub",
      "title": "Get the last stub created",
      "topics": [
        "last_stub"
      ]
    },
    {
      "page": "mock_file",
      "title": "Mock file",
      "topics": [
        "mock_file"
      ]
    },
    {
      "page": "mocking-disk-writing",
      "title": "Mocking writing to disk",
      "topics": [
        "mocking-disk-writing"
      ]
    },
    {
      "page": "remove_request_stub",
      "title": "Remove a request stub",
      "concept": [
        "stub-registry"
      ],
      "topics": [
        "remove_request_stub"
      ]
    },
    {
      "page": "request_registry",
      "title": "List or clear requests in the request registry",
      "concept": [
        "request-registry"
      ],
      "topics": [
        "request_registry",
        "request_registry_clear"
      ]
    },
    {
      "page": "request_registry_filter",
      "title": "Request registry filter",
      "topics": [
        "request_registry_filter"
      ]
    },
    {
      "page": "stub_body_diff",
      "title": "Get a diff of a stub request body and a request body from an http request",
      "topics": [
        "stub_body_diff"
      ]
    },
    {
      "page": "stub_registry",
      "title": "List stubs in the stub registry",
      "concept": [
        "stub-registry"
      ],
      "topics": [
        "stub_registry"
      ]
    },
    {
      "page": "stub_registry_clear",
      "title": "stub_registry_clear",
      "concept": [
        "stub-registry"
      ],
      "topics": [
        "stub_registry_clear"
      ]
    },
    {
      "page": "stub_request",
      "title": "Stub an http request",
      "topics": [
        "stub_request"
      ]
    },
    {
      "page": "to_raise",
      "title": "Set raise error condition",
      "topics": [
        "to_raise"
      ]
    },
    {
      "page": "to_return",
      "title": "Expectation for what's returned from a stubbed request",
      "topics": [
        "to_return"
      ]
    },
    {
      "page": "to_timeout",
      "title": "Set timeout as an expected return on a match",
      "topics": [
        "to_timeout"
      ]
    },
    {
      "page": "webmockr_configure",
      "title": "webmockr configuration",
      "topics": [
        "webmockr_allow_net_connect",
        "webmockr_configuration",
        "webmockr_configure",
        "webmockr_configure_reset",
        "webmockr_disable_net_connect",
        "webmockr_net_connect_allowed"
      ]
    },
    {
      "page": "webmockr_reset",
      "title": "webmockr_reset",
      "topics": [
        "webmockr_reset"
      ]
    },
    {
      "page": "webmockr-defunct",
      "title": "Defunct functions in 'webmockr'",
      "topics": [
        "webmockr-defunct"
      ]
    },
    {
      "page": "wi_th",
      "title": "Set additional parts of a stubbed request",
      "topics": [
        "wi_th"
      ]
    }
  ],
  "_readme": "https://github.com/ropensci/webmockr/raw/main/README.md",
  "_rundeps": [
    "cli",
    "curl",
    "fauxpas",
    "httpcode",
    "jsonlite",
    "magrittr",
    "R6",
    "Rcpp",
    "rlang",
    "triebeard",
    "urltools",
    "whisker"
  ],
  "_vignettes": [
    {
      "source": "webmockr.Rmd",
      "filename": "webmockr.html",
      "title": "Getting Started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Inside a test framework",
        "Outside a test framework",
        "Stubbed request based on uri only and with the default response",
        "Stubbing requests based on method, uri and query params",
        "Stubbing requests and set expectation of a timeout",
        "Stubbing requests and set HTTP error expectation",
        "httr integration",
        "httr2 integration",
        "Writing to disk",
        "Many requests in a row"
      ],
      "created": "2026-08-16 03:24:48",
      "modified": "2026-08-16 03:24:48",
      "commits": 1
    }
  ],
  "_score": 8.019553481747439,
  "_indexed": true,
  "_nocasepkg": "webmockr",
  "_universes": [
    "ropensci",
    "sckott"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.2.1.92",
      "date": "2026-10-15T08:48:33.000Z",
      "distro": "resolute",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/964a907e36f430186c28317398dda338a3ec3dccf21faa2e4b3ba12eb2fb7b40",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.2.1.92",
      "date": "2026-10-15T08:48:16.000Z",
      "distro": "resolute",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/c4edefd22c076b964e32b4498b430c37244a2bb7bc83ff375938b608f4451ae3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.2.1.92",
      "date": "2026-10-15T09:13:20.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/6c06cb694f9ca24be441b2a430333a2060fb8b9b249e4cff049ad662d9b590a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.2.1.92",
      "date": "2026-10-15T09:14:03.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/da25df8d9b623a9341f1e96d258e03e02d99438b2ab7c5f6804c1466d96256bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.2.1.92",
      "date": "2026-10-15T08:47:52.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/68dbc59993b52a6c7912944c5423495936f2b80f7fdbdc22c4652ac109e7f7d4",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.2.1.92",
      "date": "2026-10-15T08:47:15.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/9b8db3ec3a4edc56bf917cf4f429e4efe02764bafa3a463264840235aef199ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.2.1.92",
      "date": "2026-10-15T08:47:36.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/0c17accc8d95ff11e3e7c234c230345a4fc4af4824325792b28ba9107877f353",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.2.1.92",
      "date": "2026-10-15T08:47:12.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/4c5cbd3d51e5ac43a795bd8ae3cbcda6984f562f014d621966711d65cab503a6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/38707640783"
    }
  ]
}