citationchaser icon indicating copy to clipboard operation
citationchaser copied to clipboard

Large requests raise an error when Sys.sleep is called

Open jpeacock29 opened this issue 10 months ago • 0 comments

When large requests are made, CitationChaser pauses between requests to avoid overloading the LENS API. However, when Sys.sleep(60 - t) is hit, t is not defined (besides it's definition in base R as a matrix transpose...). I fixed this locally by replacing 60 - t with 20 (a fixed 20 second sleep period).

I can make a pull request with this fix, but I couldn't understand what the intended functionality was exactly. I noticed a t_ref was defined and measured the duration of the last API call.

jpeacock29 avatar Apr 16 '24 16:04 jpeacock29