Nothing
Code
expect_request_header(request("https://test.api/object1/") %>% req_headers(
Accept = "image/png") %>% req_perform(), accept = "image/jpeg")
Condition
Error:
! Expected Header "accept" to match regexp "image/jpeg".
Actual text:
x | image/png
Code
expect_request_header(request("https://test.api/object1/") %>% req_headers(
Accept = "image/png") %>% req_perform(), accept = NULL)
Condition
Error:
! Expected Header "accept" to be NULL.
Differences:
`actual` is a character vector ('image/png')
`expected` is NULL
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.