Crandore Hub

mockery

Mocking Library for R

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.

Versions across snapshots

VersionRepositoryFileSize
0.4.5 latest linux/jammy R-4.5 mockery_0.4.5.tar.gz 41.2 KiB
0.4.5 latest source/ R- mockery_0.4.5.tar.gz 20.5 KiB
0.4.5 latest windows/windows R-4.5 mockery_0.4.5.zip 45.2 KiB
0.4.5 2026-04-18 linux/jammy R-4.5 mockery_0.4.5.tar.gz 41.2 KiB
0.4.5 2026-04-18 source/ R- mockery_0.4.5.tar.gz 20.5 KiB
0.4.5 2026-04-18 windows/windows R-4.5 mockery_0.4.5.zip 45.2 KiB
0.4.5 2026-04-12 linux/jammy R-4.5 mockery_0.4.5.tar.gz 41.2 KiB
0.4.5 2026-04-09 linux/jammy R-4.2 mockery_0.4.5.tar.gz 40.5 KiB
0.4.5 2026-04-09 linux/jammy R-4.5 mockery_0.4.5.tar.gz 41.2 KiB
0.4.5 2026-04-09 windows/windows R-4.2 mockery_0.4.5.zip 44.7 KiB
0.4.5 2026-04-09 windows/windows R-4.5 mockery_0.4.5.zip 45.2 KiB

Dependencies (latest)

Imports

Suggests