ropensci / rAltmetric

Query and visualize metrics from altmetric.com
https://docs.ropensci.org/rAltmetric
Other
48 stars 18 forks source link

NULL list element in raw_metrics #5

Closed tts closed 11 years ago

tts commented 11 years ago

When dealing with many DOIs and when no metrics has been found for some of them (ie the list element is NULL), the altmetric_data function throws an error about the raw_metrics list:

metric_data <- ldply(raw_metrics, altmetric_data)

Error in class(output[[var]]) <- class(value) : attempt to set an attribute on NULL

karthik commented 11 years ago

I just fixed the issue and tried it with a mix of good and bad dois. Please try installing again and see if this fixed the issue for you.

tts commented 11 years ago

Yes, that did it. Great!