Learn R Programming

rtweet (version 0.7.0)

lists_users: Get all lists a specified user subscribes to, including their own.

Description

Get all lists a specified user subscribes to, including their own.

Usage

lists_users(user, reverse = FALSE, token = NULL, parse = TRUE)

Value

data

Arguments

user

The ID of the user or screen name for whom to return results.

reverse

optional Set this to true if you would like owned lists to be returned first. See description above for information on how this parameter works.

token

Every user should have their own Oauth (Twitter API) token. By default token = NULL this function looks for the path to a saved Twitter token via environment variables (which is what `create_token()` sets up by default during initial token creation). For instruction on how to create a Twitter token see the tokens vignette, i.e., `vignettes("auth", "rtweet")` or see ?tokens.

parse

Logical indicating whether to convert the response object into an R list. Defaults to TRUE.

See Also

Other lists: lists_members(), lists_statuses(), lists_subscribers(), lists_subscriptions()

Examples

Run this code
if (FALSE) {

## get lists subsribed to by Nate Silver
lists_users("NateSilver538")

}

Run the code above in your browser using DataLab