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 'testthat::with_mock()', which may break in R 3.4.0 and later.

Tests Vignettes

Available Snapshots

This version of mockr can be found in the following snapshots:

Dependencies

Imports/Depends/LinkingTo/Enhances (2)
  • rlang
  • withr
  • Suggests (7)
  • covr
  • fs
  • knitr
  • pkgload
  • rmarkdown
  • testthat
  • usethis
  • Version History