CMD + K

r-mockery

Community

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_mock() facility present in the 'testthat' package.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::r-mockery

Usage Tracking

0.4.5
0.4.4
0.4.3
0.4.2
0.4.1.1
5 / 8 versions selected
Downloads (Last 6 months): 0

About

Summary

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_mock() facility present in the 'testthat' package.

Last Updated

Sep 4, 2025 at 14:36

License

MIT

Total Downloads

80.0K

Supported Platforms

noarch

Unsupported Platforms

win-64 Last supported version: 0.4.1.1
linux-64 Last supported version: 0.4.1.1
macOS-64 Last supported version: 0.4.1.1