I’m having some problems getting the Friend List of a twitter user from R, using the TwitteR package.
What I want to get is a character vector with the names of all the “Friends” of a user – this is, the list of people he/she is following.
Following the documentation, I thought this code would work:
library("twitteR")
user <- getUser("@twitter")
user$getFriends()
But I get the following error message:
Error in envRefInferField(x, what, getClass(class(x)), selfEnv) :
"friendIDs" is not a valid field or method name for reference class "user"
Can anyone help me?
Thanks!
Sorry, this was a bug that I just fixed tonight (a severe lack of time has struck lately). The latest version (0.99.12) should fix this problem.