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()'.

Package details

AuthorKirill Müller [aut, cre]
MaintainerKirill Müller <kirill@cynkra.com>
LicenseGPL-3
Version0.2.1
URL https://krlmlr.github.io/mockr/ https://github.com/krlmlr/mockr
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("mockr")

Try the mockr package in your browser

Any scripts or data that you put into this service are public.

mockr documentation built on Feb. 16, 2023, 5:08 p.m.