mockery
0.4.5Mocking Library for R
Overview
The two main functionalities of this package are creating mock objects (functions) and selectively intercepting calls to a given function that originate in some other function. It can be used with any testing framework available for R. Mock objects can be injected with either this package's own stub() function or a similar with_mocked_binding() facility present in the 'testthat' package.
Install
Health
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 33%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
5 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/r-lib/mockery on 2026-07-30.
Dependencies
and 124 more packages.
Code & Tests
People & History
9 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 0.4.5Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.4.42023-09-26 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.4.32022-02-20 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.4.22019-09-04 · diff ↗
- unarchivedReturned to CRAN2019-09-04
- RR 3.6.0 released · 2019-04-26
- 0.4.1.12018-08-19 · diff ↗
- orphanedOrphaned by its maintainer2018-08-19check problems were not corrected despite reminders
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2016-10-25
- Total releases
- 9 / 10 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 21 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet