Closed trangdata closed 7 months ago
I personally think this introduces a lot of complexity into the package as well as for the user. It might solve the issue (I don't know because I do not understand Coro), but it is implementation wise heavier from my perspective.
There is the convenience function oa_sowball()
which would also profit from something along this line, but I think the implementation could be easier as the input papers need to be split into chunks?
Now works with group_by:
library(openalexR)
query_url <- "https://api.openalex.org/works?search=biodiversity&group_by=primary_topic.id"
oar <- oa_generate(query_url)
for (i in seq.int(202)){
record_i <- oar()
}
record_i
#> $key
#> [1] "https://openalex.org/T10207"
#>
#> $key_display_name
#> [1] "DNA Nanotechnology and Bioanalytical Applications"
#>
#> $count
#> [1] 55
Created on 2024-02-14 with reprex v2.0.2
Closes #207
Example use case: