Package: mockr 0.2.1.9016
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:
mockr_0.2.1.9016.tar.gz
mockr_0.2.1.9016.zip(r-4.5)mockr_0.2.1.9016.zip(r-4.4)mockr_0.2.1.9016.zip(r-4.3)
mockr_0.2.1.9016.tgz(r-4.4-any)mockr_0.2.1.9016.tgz(r-4.3-any)
mockr_0.2.1.9016.tar.gz(r-4.5-noble)mockr_0.2.1.9016.tar.gz(r-4.4-noble)
mockr_0.2.1.9016.tgz(r-4.4-emscripten)mockr_0.2.1.9016.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')) |
Bug tracker:https://github.com/krlmlr/mockr/issues
Last updated 8 days agofrom:9dea3faead. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Sep 05 2024 |
R-4.5-win | OK | Sep 05 2024 |
R-4.5-linux | OK | Sep 05 2024 |
R-4.4-win | OK | Sep 05 2024 |
R-4.4-mac | OK | Sep 05 2024 |
R-4.3-win | OK | Sep 05 2024 |
R-4.3-mac | OK | Sep 05 2024 |
Exports:get_mock_envlocal_mockwith_mock
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Get environment for mocking | get_mock_env |
Mock functions in a package | local_mock with_mock |