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

Read large twitter json file & Travis fix #154

Merged
merged 2 commits into from
Jun 24, 2019
Merged

Conversation

amatsuo
Copy link
Collaborator

@amatsuo amatsuo commented Jun 5, 2019

This is a simple bugfix for get_json_tweets().

Current master branch breaks an R-session when the text file is large (I realized that when I try to read a 300MB file). This is because in the current implementation, the function tries to read the entire file with readLines() and then pass the text vector to StreamR::parseTweet():
https://github.com/quanteda/readtext/blob/master/R/get-functions.R#L60-L62

This is unnecessary, as StreamR::parseTweet() can handle file inputs by directly passing the file path.

This PR also fixes travis error, by simply switching from Trusty (14.04) to Xenial (16.04).

Xenial is available since Nov 2018, but somehow I missed the update.
https://blog.travis-ci.com/2018-11-08-xenial-release

Closes #148

@amatsuo amatsuo requested a review from kbenoit June 5, 2019 17:20
@kbenoit kbenoit merged commit a347054 into master Jun 24, 2019
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

Successfully merging this pull request may close these issues.

Travis failing (again)
2 participants