ropensci / openalexR

Getting bibliographic records from OpenAlex
https://docs.ropensci.org/openalexR/
Other
97 stars 21 forks source link

Breaking change in last release? #217

Closed rkrug closed 6 months ago

rkrug commented 6 months ago

Before the last update, I could do:

openalexR::oa_fetch(
            title_and_abstract.search = "biodiversity",
            count_only = TRUE,
            verbose = TRUE
        )[, "count"]

which now gives a subscript out of bounds.

yjunechoe commented 6 months ago

I actually can't replicate the bug on dev. Could you try running the example again?

I get

openalexR::oa_fetch(
            title_and_abstract.search = "biodiversity",
            count_only = TRUE,
            verbose = TRUE
        )[, "count"]
#> Requesting url: https://api.openalex.org/works?filter=title_and_abstract.search%3Abiodiversity
#>  count 
#> 267246
rkrug commented 6 months ago

OK - dev. If I remember correctly, the problem was there when using thew last CRAN release - or was it R-Universe, I really do not remember - sorry. But with the one I am using now, it works.

openalexR   * 1.2.2.9999 2024-03-11 [1] Github (ropensci/openalexR@558581c)
yjunechoe commented 6 months ago

Good to know we (inadvertently?) fixed a bug that existed previously!