Skip to content

webmockr

2.2.0

Stubbing and Setting Expectations on 'HTTP' Requests

28packages depend
66.1Kdownloads / 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: 1.9 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 1.11
89.4%
Coverage · measured lines
98%
Documentation · exports
8
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • 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

66.1K
CRAN downloads in the past year
Rank #1,759 · ~181/day · ~5.5K/mo
Daily download trend is not available in this view yet.
3.6K30 days
13.2K90 days
66.1K1 year
Compare downloads with other packages →
Also on814 r2u16 autocran1.1K conda_forge67 c2d4u

Repository

Repository
50Stars
7Forks
14Open issues
0Open PRs
21Releases
598Commits
6Contributors
httphttp-mockingrstatshttp-mockmockfakewebtddtesting-tools
598 commits · Last activity 2026-08-16

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-08-16.

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

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

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("webmockr")
Chamberlain, S., rOpenSci, & Wolen, A. (2025). webmockr: Stubbing and Setting Expectations on 'HTTP' Requests (Version 2.2.0) [Computer software]. https://doi.org/10.32614/CRAN.package.webmockr

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for webmockr version 2.2.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy