Use [vcr](https://github.com/ropensci/vcr) and [webmockr](https://github.com/ropensci/webmockr) to [test HTTP requests](https://ropensci.org/technotes/2018/05/25/vcr-http-request-cacahing/).