Initial CRAN release.
with_mock()
modeled closely after testthat::with_mock()
, can only mock in the package under test but avoids fiddling with R's internals.
.env
argument now can be a character, but using this argument may lead to different results than testthat::with_mock()
.