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

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
Collaborator

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
Collaborator

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 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