Package: mockr 0.2.0.9002

Kirill Müller

mockr: Mocking in R

Provides a means to mock a package function, i.e., temporarily substitute it for testing. Designed as a drop-in replacement for the now deprecated 'testthat::with_mock()' and 'testthat::local_mock()'.

Authors:Kirill Müller [aut, cre]

mockr_0.2.0.9002.tar.gz
mockr_0.2.0.9002.zip(r-4.7)mockr_0.2.0.9002.zip(r-4.6)mockr_0.2.0.9002.zip(r-4.5)
mockr_0.2.0.9002.tgz(r-4.6-any)mockr_0.2.0.9002.tgz(r-4.5-any)
mockr_0.2.0.9002.tar.gz(r-4.7-any)mockr_0.2.0.9002.tar.gz(r-4.6-any)
mockr_0.2.0.9002.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mockr/json (API)
NEWS

# Install 'mockr' in R:
install.packages('mockr', repos = c('https://mrc-ide.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/krlmlr/mockr/issues

Pkgdown/docs site:https://krlmlr.github.io

On CRAN:

Conda:

5.15 score 38 scripts 25k downloads 3 exports 2 dependencies

Last updated from:61ff4551e5 (on main). Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK119
source / vignettesOK179
linux-release-x86_64OK122
macos-release-arm64OK116
macos-oldrel-arm64OK77
windows-develOK74
windows-releaseOK68
windows-oldrelOK69
wasm-releaseOK100

Exports:get_mock_envlocal_mockwith_mock

Dependencies:rlangwithr

Mocking with mockr

Rendered frommockr.Rmdusingknitr::rmarkdownon Jun 04 2026.

Last update: 2022-02-18
Started: 2020-12-18