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

get_friends() and get_followers() return objects with different column names. #594

Closed
simonheb opened this issue Jul 13, 2021 · 2 comments
Closed

Comments

@simonheb
Copy link
Contributor

Problem

The two functions get_friends() and get_followers() seem to be working very similarly but return different objects, in particular get_friends() returns a data.frame with the columns user and ids. While get_followers()returns the a data.frame with the columnuser_id`.

Expected behavior

Users might expect get_friends() to return a column named user_ids for consistency with get_followers()

Reproduce the problem

my_followers <- get_followers("CaptionClerk")
my_friends <- get_friends("CaptionClerk")
print(names(my_followers))
print(names(my_friends))

rtweet version

‘0.7.0.9000’

@llrs
Copy link
Member

llrs commented Jul 13, 2021

I think this is addressed by #572 but I haven't checked. When that PR is merged all functions will return the same structure (Except when they return users data).

@llrs
Copy link
Member

llrs commented May 6, 2022

Sorry, I forgot to mention, this was also discussed on #308 and solved at 1c6025b. Together with 5dd07d8 the returned objects should always be consistent.

@llrs llrs closed this as completed May 6, 2022
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

No branches or pull requests

2 participants