Package: mockr 0.2.1.9028

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

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

Peer review:

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

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

On CRAN:

7.96 score 18 stars 37 scripts 7.3k downloads 3 exports 2 dependencies

Last updated 2 months agofrom:03a37377fa. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 08 2025
R-4.5-winOKJan 08 2025
R-4.5-linuxOKJan 08 2025
R-4.4-winOKJan 08 2025
R-4.4-macOKJan 08 2025
R-4.3-winOKJan 08 2025
R-4.3-macOKJan 08 2025

Exports:get_mock_envlocal_mockwith_mock

Dependencies:rlangwithr

Mocking with mockr

Rendered frommockr.Rmdusingknitr::rmarkdownon Jan 08 2025.

Last update: 2023-10-09
Started: 2020-12-18