use_mock_api | R Documentation |
This function intercepts HTTP requests made through httr
and serves mock
file responses instead. It is what with_mock_api()
does, minus the
automatic disabling of mocking when the context finishes.
use_mock_api()
Note that you in order to resume normal request behavior, you will need to
call stop_mocking()
yourself—this function does not clean up after itself
as 'with_mock_api' does.
Nothing; called for its side effects.
with_mock_api()
stop_mocking()
block_requests()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.