pablobarbera / streamR

Dev version of streamR package: Access to Twitter Streaming API via R
http://cran.r-project.org/web/packages/streamR/
107 stars 47 forks source link

Couldn't convert json string to dataframe using parseTweets() ; Error in iconv(lines, "ASCII", "UTF-8", sub = "") #7

Open solomonchristyab opened 8 years ago

solomonchristyab commented 8 years ago

I tried converting .json file to dataframe in R. But it ended up showing:

> thanioruvan.tweets <- parseTweets("thanioruvan_tweets.json")
**Error in iconv(lines, "ASCII", "UTF-8", sub = "") : **
  embedded nul in string: '{"created_at":["Mon Sep 21 01:48:19 +0000 2015"],"id":[6.45776539955532e+017],"id_str":["645776539955531776"],"text":["RT @SathieshDhas: Trvld 150km 4hrs up dwn, spnt 30\0 2 watch #ThaniOruvan Worth doin mre.....

thanioruvan_tweets.json has nearly 980 tweets downloaded using getTimeline()

Kindly fix up this issue.

Thanks in advance!