insert_cassette | R Documentation |
Generally you should not need to use these functions, instead preferring
use_cassette()
or local_cassette()
insert_cassette(
name,
dir = NULL,
record = NULL,
match_requests_on = NULL,
serialize_with = NULL,
preserve_exact_body_bytes = NULL,
re_record_interval = NULL,
warn_on_empty = NULL
)
eject_cassette()
name |
The name of the cassette. This is used to name a file on disk, so it must be valid file name. |
dir |
The directory where the cassette will be stored. Defaults to
|
record |
Record mode that dictates how HTTP requests/responses are recorded. Possible values are:
|
match_requests_on |
Character vector of request matchers used to
determine which recorded HTTP interaction to replay. The default matches
on the The full set of possible values are:
If more than one is specified, all components must match in order for the
request to match. If not supplied, defaults to Note that the request header and body will only be included in the
cassette if |
serialize_with |
(string) Which serializer to use:
|
preserve_exact_body_bytes |
(logical) Force a binary (base64)
representation of the request and response bodies? By default, vcr
will look at the |
re_record_interval |
(integer) How frequently (in seconds) the
cassette should be re-recorded. Default: |
warn_on_empty |
(logical) Warn if the cassette is ejected but no interactions
have been recorded. Default: |
A Cassette, invisibly.
vcr_configure(dir = tempdir())
insert_cassette("hello")
current_cassette()
eject_cassette()
current_cassette()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.