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()'.
| Version: | 0.2.0 |
| Imports: | rlang, withr |
| Suggests: | covr, fs, knitr, pkgload, rmarkdown, testthat, usethis |
| Published: | 2022-04-02 |
| Author: | Kirill Müller [aut, cre] |
| Maintainer: | Kirill Müller <krlmlr+r at mailbox.org> |
| BugReports: | https://github.com/krlmlr/mockr/issues |
| License: | GPL-3 |
| URL: | https://krlmlr.github.io/mockr/, https://github.com/krlmlr/mockr |
| NeedsCompilation: | no |
| Materials: | README NEWS |
| CRAN checks: | mockr results |
| Reference manual: | mockr.pdf |
| Vignettes: |
Mocking with mockr |
| Package source: | mockr_0.2.0.tar.gz |
| Windows binaries: | r-devel: mockr_0.2.0.zip, r-release: mockr_0.2.0.zip, r-oldrel: mockr_0.2.0.zip |
| macOS binaries: | r-release (arm64): mockr_0.2.0.tgz, r-oldrel (arm64): mockr_0.2.0.tgz, r-release (x86_64): mockr_0.2.0.tgz, r-oldrel (x86_64): mockr_0.2.0.tgz |
| Old sources: | mockr archive |
| Reverse suggests: | amerifluxr, corehunter, dm, gargle, gluedown, googledrive, knitrProgressBar, mctq, miniCRAN, passport, pestr, reprex, rextendr, ROCaggregator, rprojroot, storr, tibble, tidysq, usethis |
Please use the canonical form https://CRAN.R-project.org/package=mockr to link to this page.