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

Getting started

Package details

Maintainer
LicenseGPL-3
Version0.2.1.9007
URL https://krlmlr.github.io/mockr/ https://github.com/krlmlr/mockr
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("krlmlr/mockr")
krlmlr/mockr documentation built on April 3, 2024, 3:37 a.m.