'Error when using write_as_csv() in rtweet package
When I use the write_as_csv() from the rtweet package, I get the following error:
Twitterstorians_hashtag <- search_tweets(
q="#Twitterstorians",
n = 100,
type = "recent",
include_rts = TRUE,
parse = TRUE,
)
save_as_csv(Twitterstorians_hashtag, "Twitterstorians_hashtag.csv", prepend_ids
= TRUE, na = "", fileEncoding = "UTF-8")
Error in utils::write.table(x, file_name, row.names = FALSE, na = na, :
unimplemented type 'list' in 'EncodeElement'
In addition: Warning message:
In flatten(x) : data frame still contains recursive columns!
If I try to use flatten(), I get the following error:
Error in flatten_int(x) : Not compatible with STRSXP: [type=list].
I'm not sure how to fix these errors? Any suggestions would be much appreciated
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
