Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in search with a specific name #3

Closed
phobeika opened this issue Jan 18, 2023 · 1 comment
Closed

Error in search with a specific name #3

phobeika opened this issue Jan 18, 2023 · 1 comment

Comments

@phobeika
Copy link

Hi,

Thank you for this package, it's great. I had one error with a specific name I could not figure out, while running :

dnb_search(author = "Parth, Wolfgang", type = "books", limit = 100)

I got :

Erreur dans names(object) <- nm : attribut 'names' [1] doit être de même longueur que le vecteur [0]

It works when I remove the limit option and I never had this error with other names.

@chgrl
Copy link
Owner

chgrl commented Feb 17, 2023

Hi,

Thanks for sending that issue. Sorry for the late reply. Gmail stopped synchronising in my mail client, so I didn't realise your issue.

The problem was an empty sublist in the xml response of your request. Thus only the first 17 records could be parsed well. The 18. record threw the error.

I just fixed that in version 0.1-6. This is a dev version and only available on Github. Please use devtools::install_github("chgrl/rdnb") to install it from Github.

@chgrl chgrl closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants