Code
local_mock(~ response(404))
Condition
Warning:
`local_mock()` was deprecated in httr2 1.0.0.
i Please use `local_mocked_responses()` instead.
Code
. <- with_mock(NULL, ~ response(404))
Condition
Warning:
`with_mock()` was deprecated in httr2 1.0.0.
i Please use `with_mocked_responses()` instead.
Code
local_mocked_responses(function(foo) { })
Condition
Error in `local_mocked_responses()`:
! `mock` must have the argument `req`; it currently has `foo`.
Code
local_mocked_responses(10)
Condition
Error in `local_mocked_responses()`:
! `mock` must be a function or list, not a number.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.