ropensci/europepmc

When no results returned, package should still set hit count attribute (to 0)

Opened this issue · 3 comments

At the moment when there are no results returned, md is set to NULL and the block is closed without setting the hit_count attr.

It would be good to add to add this line

attr(md, "hit_count") <- 0

before exiting

I'd be happy to make this change, but I'm not sure of your contribution process. Should I fork the dev branch and then submit a PR?

Hi @arvi1000 Good catch, feel free to contribute a PR!

Thanks. Filed a PR #58