This functionality is borrowed from: https://github.com/MarkEdmondson1234/googleAuthR ReTry API requests for certain errors using exponential backoff.
ReTry API requests for certain errors using exponential backoff.
retryRequest(f)retryRequest(f)
A function of a http request