This package is hidden from search results because it is not hosted in the universe of the upstream owner
krlmlr. To fix this you can add URL: https://cynkra.r-universe.dev/mockr to the package DESCRIPTION file. See also theR-universe documentation.Package: mockr 0.2.2.9010
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.2.9010.tar.gz
mockr_0.2.2.9010.zip(r-4.7)mockr_0.2.2.9010.zip(r-4.6)mockr_0.2.2.9010.zip(r-4.5)
mockr_0.2.2.9010.tgz(r-4.6-any)mockr_0.2.2.9010.tgz(r-4.5-any)
mockr_0.2.2.9010.tar.gz(r-4.7-any)mockr_0.2.2.9010.tar.gz(r-4.6-any)
mockr_0.2.2.9010.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://cynkra.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/krlmlr/mockr/issues
Pkgdown/docs site:https://krlmlr.github.io
Last updated from:e063f6bcb4. Checks:9 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 120 | ||
| source / vignettes | OK | 241 | ||
| linux-release-x86_64 | OK | 115 | ||
| macos-release-arm64 | OK | 77 | ||
| macos-oldrel-arm64 | OK | 83 | ||
| windows-devel | OK | 65 | ||
| windows-release | OK | 98 | ||
| windows-oldrel | OK | 70 | ||
| wasm-release | OK | 86 |
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 |
