webmockr
2.2.0Stubbing and Setting Expectations on 'HTTP' Requests
Overview
Stubbing and setting expectations on 'HTTP' requests. Includes tools for stubbing 'HTTP' requests, including expected request conditions and response conditions. Match on 'HTTP' method, query parameters, request body, headers and more. Can be used for unit tests or outside of a testing context.
Install
Health
- OK2026-06-0813 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0712 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 73%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/ropensci/webmockr on 2026-07-19.
Show all practices
Dependencies
Code & Tests
- Cyclomatic complexity
- 2.0 median / 12 max
- Test cases
- 188 / 1.11 per code line
Test coverage
Line coverage
89%
Expression
86.8%
Tests / Examples
89.4% / – ex
Functions
118 38 exported
Complexity
2.5 avg / 12 max
Call network
118 nodes / 85 edges
Call graph
Open call graph →Lowest coverage
118 functions| Function | Cyclo | Coverage |
|---|---|---|
| webmockr_crul_fetch exp | 4 | 0% |
| col_l | 1 | 0% |
| crul_head_parse | 2 | 0% |
| crul_headers_parse | 1 | 0% |
| drop_query_params | 1 | 0% |
| hdl_nested | 2 | 0% |
People & History
21 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 2.2.0Latest
- 2.1.02025-06-29 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.0.02025-02-11 · diff ↗
- 1.0.02024-07-23 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.9.02023-02-28 · diff ↗
- 0.8.22022-08-28 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.8.02021-03-14 · diff ↗
- 0.7.42020-12-09 · diff ↗
- 0.7.02020-09-30 · diff ↗
- RR 4.0.0 released · 2020-04-24
Show 15 earlier events
- 0.6.22020-03-24 · diff ↗
- 0.6.02020-03-02 · diff ↗
- 0.5.02019-12-04 · diff ↗
- 0.4.02019-08-09 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 0.3.42019-02-09 · diff ↗
- 0.3.02019-01-09 · diff ↗
- 0.2.92018-11-06 · diff ↗
- 0.2.82018-10-19 · diff ↗
- 0.2.62018-05-17 · diff ↗
- 0.2.42018-05-08 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.2.02018-03-02 · diff ↗
- 0.1.02017-05-20
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-05-20
- Total releases
- 21 / 9 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 100 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet