Skip to content
This repository has been archived by the owner on Nov 10, 2024. It is now read-only.

search_users with parse=TRUE fails if all found users haven't tweeted anything #292

Closed
luke-a opened this issue Sep 25, 2018 · 1 comment

Comments

@luke-a
Copy link

luke-a commented Sep 25, 2018

When calling rtweet::search_users("John Doe", parse = TRUE), one might encounter the error message

Error: Columns NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA must have unique names

I believe this happens when all of the returned users haven't tweeted anything, yet. Because then, status_object(x) returns a list with all elements being NULL. That is because if (&&(is.data.frame(x), c("favorite_count", "source") %in% names(x))) does not return TRUE; without any tweets there aren't any column named favorite_count and source.

@llrs llrs mentioned this issue Feb 15, 2021
@llrs
Copy link
Collaborator

llrs commented Feb 15, 2021

This specific user now has tweeted, I think there was a more recent report of this issue. Closing it

@llrs llrs closed this as completed Feb 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants