Hi Laura —
I'm one of openalexR maintainers. Thank you for using openalexR!
First off, what you want is the "pages" argument in oa_fetch, not "page". That will fix your error.
Rainer had a good point that specifying either output = "list" or output = "raw" might be faster in your case because then you don't need to convert each result to tibble every time you try to write out a result. If you still want the tibble result, you can combine the result files later and call oa2df(). Also agree with Gabor that chunking the call by year may be helpful.
One lesser known function is oa_generate, which gives you a generator for making request to OpenAlex API Returns one record at a time. The
documentation provides some examples for you to try out. This
vignette shows how you can save the output in batches with oa_generate.
I hope that helps! Please don't hesitate to submit an
issue directly on our GitHub page. (Best if you can provide a small enough example for us to test out what you were expecting to achieve.)
Cheers,
Trang