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.5)mockr_0.2.0.9002.zip(r-4.4)mockr_0.2.0.9002.zip(r-4.3)
mockr_0.2.0.9002.tgz(r-4.4-any)mockr_0.2.0.9002.tgz(r-4.3-any)
mockr_0.2.0.9002.tar.gz(r-4.5-noble)mockr_0.2.0.9002.tar.gz(r-4.4-noble)
mockr_0.2.0.9002.tgz(r-4.4-emscripten)mockr_0.2.0.9002.tgz(r-4.3-emscripten)
mockr.pdf |mockr.html
mockr/json (API)
NEWS

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

Peer review:

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

On CRAN:

4.84 score 37 scripts 12k downloads 3 exports 2 dependencies

Last updated 2 years agofrom:61ff4551e5 (on main). Checks:OK: 7. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 09 2024
R-4.5-winOKOct 09 2024
R-4.5-linuxOKOct 09 2024
R-4.4-winOKOct 09 2024
R-4.4-macOKOct 09 2024
R-4.3-winOKOct 09 2024
R-4.3-macOKOct 09 2024

Exports:get_mock_envlocal_mockwith_mock

Dependencies:rlangwithr

Mocking with mockr

Rendered frommockr.Rmdusingknitr::rmarkdownon Oct 09 2024.

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