if (FALSE) {
response <- httr::RETRY(
"GET", "https://httpbin.org/headers",
httr::authenticate("epidata", "fake_key")
)
content(response)$headers$Authorization == paste0(
"Basic ",
base64enc::base64encode(charToRaw("epidata:fake_key"))
)
}
Run the code above in your browser using DataLab