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

get_article_cite_history -- one citation in future year #27

Closed
mhscott opened this issue Dec 20, 2015 · 1 comment
Closed

get_article_cite_history -- one citation in future year #27

mhscott opened this issue Dec 20, 2015 · 1 comment

Comments

@mhscott
Copy link

mhscott commented Dec 20, 2015

I have found by trial and error that get_article_cite_history fails when there are 0 citations to the article, giving the error message below. I know you're aware of this, so please keep reading after the error message.

Error in min(years):max(years) : result would be too long a vector
In addition: Warning messages:
1: In min(years) : no non-missing arguments to min; returning Inf
2: In max(years) : no non-missing arguments to max; returning -Inf

I have run in to another case where I get the same error when there is one citation to the article having a publication year in the future. Consider the following example

get_article_cite_history("xXHEaAUAAAAJ","Wp0gIr-vW9MC")

There is one citing article, with publication year 2016. Looking at the source code for this function, there is an attempt to read the citation bar chart provided by GS; however, GS reports no bar chart for the citations to this article, thus the error and perhaps no easy fix, although a check and a graceful return from the function would be welcome.

2015 is almost over, so this particular example will fix itself soon :)

Here is another example with two citations, one in 2016 and one with no year. The same error occurs

get_article_cite_history("0pYNftwAAAAJ","M3ejUd6NZC8C")

@mhscott
Copy link
Author

mhscott commented Jul 13, 2016

@jefferis Can you take a look at this? I'm not good with R-code :(

Here's a 2016-2017 example: get_article_cite_history("iqSI5oQAAAAJ","35N4QoGY0k4C"). There's one citing article with a publication year 2017.

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

1 participant