Skip to content

webmockr

2.2.0

Stubbing and Setting Expectations on 'HTTP' Requests

25packages depend
65.6Kdownloads / year
89.4%test coverage
13/13checks pass

Overview

About
Maintained by Scott ChamberlainFirst published 2017-05-2021 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.3 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 1.11
89.4%
Coverage · measured lines
98%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-06-08
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-07
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesNopkgdown siteNoNEWSYes · 33% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
73%
References docs
0%

Downloads

65.6K
CRAN downloads in the past year
Rank #1,753 · ~180/day · ~5.5K/mo
Daily download trend is not available in this view yet.
3.5K30 days
15.1K90 days
65.6K1 year
Compare downloads with other packages →
Also on1.1K r2u30 autocran1.2K conda_forge67 c2d4u

Repository

Repository
50Stars
7Forks
14Open issues
0Open PRs
21Releases
590Commits
6Contributors
httphttp-mockingrstatshttp-mockmockfakewebtddtesting-tools
590 commits · Last activity 2025-08-05 · 0% stars, 30d

Stars over time

2025-07-08 · 502026-07-07 · 50

Repository practices

Upstream repositoryBeta

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.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Research and citation (1)
codemeta.json
Lint, format, editor (3)
lintrAirVS Code
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Code Composition
R 8,497 (70%)Rd 3,647 (30%)Markdown 73 (1%)
Code characteristics
Object systems
S33R617
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

Loading call graph…

Lowest coverage

118 functions
FunctionCycloCoverage
webmockr_crul_fetch exp40%
col_l10%
crul_head_parse20%
crul_headers_parse10%
drop_query_params10%
hdl_nested20%

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (1)
Contributor · added in 0.6.0
Funders (1)
Funder · added in 0.2.6
Package Timeline

21 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.2.0Latest
    2025-07-21 · current release · diff ↗
  • 2.1.0
    2025-06-29 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 2.0.0
    2025-02-11 · diff ↗
  • 1.0.0
    2024-07-23 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 0.9.0
    2023-02-28 · diff ↗
  • 0.8.2
    2022-08-28 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.8.0
    2021-03-14 · diff ↗
  • 0.7.4
    2020-12-09 · diff ↗
  • 0.7.0
    2020-09-30 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
Show 15 earlier events
  • 0.6.2
    2020-03-24 · diff ↗
  • 0.6.0
    2020-03-02 · diff ↗
  • 0.5.0
    2019-12-04 · diff ↗
  • 0.4.0
    2019-08-09 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.3.4
    2019-02-09 · diff ↗
  • 0.3.0
    2019-01-09 · diff ↗
  • 0.2.9
    2018-11-06 · diff ↗
  • 0.2.8
    2018-10-19 · diff ↗
  • 0.2.6
    2018-05-17 · diff ↗
  • 0.2.4
    2018-05-08 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.2.0
    2018-03-02 · diff ↗
  • 0.1.0
    2017-05-20
  • R
    R 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
Appears in task views
Report a problem with this page →