# NOT RUN {
vcr_configure(dir = tempdir())
turn_on()
turned_on()
turn_off()
# turn off for duration of a block
library(crul)
turned_off({
res <- HttpClient$new(url = "https://eu.httpbin.org/get")$get()
})
res
# turn completely off
turn_off()
library(webmockr)
crul::mock()
# HttpClient$new(url = "https://eu.httpbin.org/get")$get(verbose = TRUE)
turn_on()
# }
Run the code above in your browser using DataLab