enable | R Documentation |
Enable or disable webmockr
enable(adapter = NULL, options = list(), quiet = FALSE) enabled(adapter = "crul") disable(adapter = NULL, options = list(), quiet = FALSE)
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: |
enable()
enables webmockr for all adapters.
disable()
disables webmockr for all adapters. enabled()
answers whether webmockr is enabled for a given adapter
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.