Re: [R] JSONlite import problem

2015-10-25 Thread K. Elo
Hi, thanks to Duncan and Jeroen to quick replies. I was actually my thinking error :) I suppoed 'fromJSON' to cope with a multi-line file or a list, but this seems not to be the case. So I first read the file with 'readLines' into a list and processed all items with 'fromJSON' within a

Re: [R] JSONlite import problem

2015-10-24 Thread Jeroen Ooms
On Sat, Oct 24, 2015 at 1:35 PM, Duncan Murdoch wrote: > > > However, editing the file with a text editor to create "proper" EOF > > doesn't help. > > The problem is that you have valid-looking JSON objects on each odd > numbered line, separated by single blank lines.

Re: [R] JSONlite import problem

2015-10-24 Thread Duncan Murdoch
On 24/10/2015 12:11 AM, K. Elo wrote: > Hi! > > You can download the example file with this link: > https://www.dropbox.com/s/tlf1gkym6d83log/example.json?dl=0 > > BTW, I have used a JSON validator and the problem seems to related to > wrong/missing EOF. > > --- snip --- > Error: Parse error

Re: [R] JSONlite import problem

2015-10-23 Thread K. Elo
Hi! You can download the example file with this link: https://www.dropbox.com/s/tlf1gkym6d83log/example.json?dl=0 BTW, I have used a JSON validator and the problem seems to related to wrong/missing EOF. --- snip --- Error: Parse error on line 1: ...:"1436705823768"} {"created_at":"Sun J

[R] JSONlite import problem

2015-10-23 Thread K. Elo
Hi! I have collected 500.000+ tweets with a Python script using 'tweepy', which stored the data in JSON format. I would like to use R for data analysis, but have encountered problems when trying to import the data file with 'jsonlite'. Here what I have tried: >

Re: [R] JSONlite import problem

2015-10-23 Thread Duncan Murdoch
On 23/10/2015 3:44 PM, K. Elo wrote: Hi! I have collected 500.000+ tweets with a Python script using 'tweepy', which stored the data in JSON format. I would like to use R for data analysis, but have encountered problems when trying to import the data file with 'jsonlite'. Here what I have