Closed trangdata closed 3 months ago
@trangdata Maybe this is a locale/encoding thing, but this test (and only this test), I have some weird unicode characters popping up for the display name that makes test()
fail:
openalexR::oa_fetch(identifier = "S62468778")$display_name
#> [1] "\u0098The \u009cNew England journal of medicine (Print)"
Could you see if you can reproduce this? Otherwise LGTM, so if it's just me I'll merge for now!
Same for me. Also on OpenAlex:

On 4 Apr 2024, at 17:03, June Choe @.***> wrote:
@trangdata https://github.com/trangdata Maybe this is a locale/encoding thing, but this test (and only this test), I have some weird unicode characters popping up for the display name that makes test() fail:
openalexR::oa_fetch(identifier = "S62468778")$display_name
> [1] "\u0098The \u009cNew England journal of medicine (Print)"
Could you see if you can reproduce this? Otherwise LGTM, so if it's just me I'll merge for now!
— Reply to this email directly, view it on GitHub https://github.com/ropensci/openalexR/pull/224#issuecomment-2037462293, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADW6BHXTU7APFDYRXSAMZDY3VTVBAVCNFSM6AAAAABFEZCPW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXGQ3DEMRZGM. You are receiving this because you are subscribed to this thread.
-- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)
Orcid ID: 0000-0002-7490-0066
Department of Evolutionary Biology and Environmental Studies University of Zürich Office Y19-M-72 Winterthurerstrasse 190 8075 Zürich Switzerland
Office: +41 (0)44 635 47 64 Cell: +41 (0)78 630 66 57 email: @. @.
PGP: 0x0F52F982
Very strange! Thank you @yjunechoe for pointing this out. There must have been a change on the OpenAlex's end. https://api.openalex.org/sources/S62468778
I changed the test and made an edit in sources2df
.
Created on 2024-03-23 with reprex v2.0.2