'Unable to read JSON file from rtweet
I'm using the Rtweet package to collect streamed tweets from Twitter API. Using the following code to collect data:
stream_tweets(
q = "",
timeout = 10,
file_name = "sample.json",
parse = FALSE
)
sample <- parse_stream("sample.json")
save(sample, file = "sample_live.Rda")
Issue: The json file that is saved in my directory is working fine and contains streamed tweets data. However, when I try to load my converted Rda file in R, R just returns NULL:
> sample
NULL
> dim(sample)
NULL
Any ideas on how to solve this issue?
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
