View source: R/without-internet.R
| block_requests | R Documentation |
This function intercepts HTTP requests made through httr and raises an
informative error instead. It is what without_internet() does, minus the
automatic disabling of mocking when the context finishes.
block_requests()
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 'without_internet' does.
Nothing; called for its side effects.
without_internet() stop_mocking() use_mock_api()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.