Let's assume that the API provider wants me to send requests one by one, ie. not sending a new request before the previous one is taken care of. I wonder if a Sys.sleep() anywhere inside the oadoi_fetch_ function would do the trick? Or, would it need to be (if possible) in the "scope" of the plyr::llply function?
The reason why I'm asking is that I'm learning proper ways to deal with APIs, and your roadoi code acts as an excellent, well-built tutorial. In other words, my question does not refer to the Unpaywall API as such.
Thanks for any pointers!
Let's assume that the API provider wants me to send requests one by one, ie. not sending a new request before the previous one is taken care of. I wonder if a
Sys.sleep()anywhere inside the oadoi_fetch_ function would do the trick? Or, would it need to be (if possible) in the "scope" of the plyr::llply function?The reason why I'm asking is that I'm learning proper ways to deal with APIs, and your
roadoicode acts as an excellent, well-built tutorial. In other words, my question does not refer to the Unpaywall API as such.Thanks for any pointers!