

- #JABREF ERROR FETCHING FROM GOOGLE SCHOLAR CODE#
- #JABREF ERROR FETCHING FROM GOOGLE SCHOLAR WINDOWS#
$ author "R Desai, CD Hembree, A Handel, JE Matthews, BW Dickey, S McDo… $ title "Severe outcomes are associated with genogroup 2 genotype 4 no… Use quartz() for MacOS ww = 5 wh = 5 windows( width=ww, height=wh) print(p1)
#JABREF ERROR FETCHING FROM GOOGLE SCHOLAR WINDOWS#
# combine data above into single data frame #add a variable to indicate period 1 and period 2 cites_1 $group = "1" cites_2 $group = "2" cites_df = rbind(cites_1,cites_2) xlabel = cites_df $year #make the plot and show linear fit lines p1 <- ggplot( data = cites_df, aes(year, cites, colour=group, shape=group)) + geom_point( size = I( 4)) + geom_smooth( method= "lm", aes( group = group), se = F, size= 1.5) + scale_x_continuous( name = "Year", breaks = xlabel, labels = xlabel) + scale_y_continuous( "Citations according to Google Scholar") + theme_bw( base_size= 14) + theme( legend.position= "none") + geom_text( aes( NULL, NULL), x= 2010.8, y= 150, label= "Average annual \n increase 22%", color= "black", size= 5.5) + geom_text( aes( NULL, NULL), x= 2017, y= 150, label= "Average annual \n increase 43%", color= "black", size= 5.5) #open a new graphics window #note that this is Windows specific.
#JABREF ERROR FETCHING FROM GOOGLE SCHOLAR CODE#
To minimize chances of getting locked out by Google, I wrote the code below such that it only sends a request if there isn’t a local file already containing that data. However, some analyses are only able with Google Scholar information.

I describe such an approach in part 2 of this post. I haven’t found a great solution yet, other than not using the Google Scholar data. This is a well known problem and if you search online, you find others complaining about it. If that happens to you, try a different computer, or clear cookies. I notice that when I try to pull references from Google Scholar using JabRef and also with the code below. If Google changes their API for Scholar and the package isn’t updated, the below code might stop working.Ī problem I keep encountering with Google Scholar is that it starts blocking requests, even after what I consider are not that many attempts to retrieve data. NotesĪs of this writing, the scholar R package seems semi-dormant and not under active development. I describe an alternative approach using the bibliometrix package in part 2 of this post. The following shows a few things one can do with the scholar package. Instead of doing things by hand, there are nicer/faster ways using R. In the past, I also needed similar information for NSF grant applications. : Unexpected end of file from serverĪt net.sf.downloadToString(URLDownload.java:157) ~Īt net.sf.downloadToString(URLDownload.java:152) ~Īt net.sf.runConfig(GoogleScholarFetcher.java:176) ~Īt net.sf.processQueryGetPreview(GoogleScholarFetcher.java:96) ~Īt net.sf.lambda$actionPerformed$4(GeneralFetcher.java:231) ~Īt .runWorker(ThreadPoolExecutor.java:1142) Īt $n(ThreadPoolExecutor.java:617) Īt (Thread.java:745) ġ8:25:04.913 WARN net.sf. - Error fetching from Google ScholarĪt (Thread.I needed some information on all my publications for “bean counting” purposes related to preparing my promotion materials. Change to another L&F with caution.ġ8:25:04.911 WARN net.sf. - Could not copy input 18:24:49.994 WARN net.sf.jabref.JabRefGUI - There seem to be problems with OpenJDK and the default GTK Look&Feel.
