enable: Enable or disable webmockr

View source: R/flipswitch.R

enableR Documentation

Enable or disable webmockr

Description

Enable or disable webmockr

Usage

enable(adapter = NULL, options = list(), quiet = FALSE)

enabled(adapter = "crul")

disable(adapter = NULL, options = list(), quiet = FALSE)

Arguments

adapter

(character) the adapter name, 'crul' or 'httr'. one or the other. if none given, we attempt to enable both adapters

options

list of options - ignored for now.

quiet

(logical) suppress messages? default: FALSE

Details

enable() enables webmockr for all adapters. disable() disables webmockr for all adapters. enabled() answers whether webmockr is enabled for a given adapter

Value

enable() and disable() invisibly returns booleans for each adapter, as a result of running enable or disable, respectively, on each HttpLibAdapaterRegistry object. enabled returns a single boolean


webmockr documentation built on March 7, 2023, 5:25 p.m.