geoffjentry/twitteR

TwitteR and JRI

WeimusT opened this issue · 0 comments

I am doing a side Java project using JRI and twitteR to generate wordcloud using tweets. Since my R script is executed in a Java environment so JRI is used.

But JRI crashes with warning messages:

JRI Warning: jriReadConsole detected a possible deadlock [org.rosuda.JRI.Mutex@20ed2dc2[locked, by current thread]][Thread[qtp584131341-43,5,main]]. Proceeding without lock, but this is inherently unsafe.

Previously when the old twitter oauth setup functions, OAuthFactor and registerTwitterOAuth, were used, my project worked and the wordcloud was generated. But recently I picked this project up again and used the new OAuth setup function: setup_twitter_oauth, but JRI fails w/ warning messages given above.

Because only the authentication part of R script was changed, I guess it could be the existing oauth setup function in twitteR that causes this incompatibility. Anyone has any thoughts on this issue? Thanks a million.