last_stub | R Documentation |
Get the last stub created
last_stub()
NULL
if no stubs found; otherwise the last stub created
as a StubbedRequest
class
# no requests
stub_registry_clear()
last_stub()
# a stub is found
stub_request("head", "https://nytimes.com")
last_stub()
stub_request("post", "https://nytimes.com/stories")
last_stub()
# cleanup
stub_registry_clear()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.