Skip to contents

Twitter parameters to add more fields on the returned values.

Usage

set_expansions(
  tweet = tweet_expansions(),
  user = user_expansions(),
  list = list_expansions()
)

tweet_expansions(attachments = TRUE, referenced_tweets = TRUE)

user_expansions()

list_expansions()

Arguments

tweet, user, list

tweet_expansions(), user_expansions() and tweet_expansions().

attachments

Add attachments values? Default yes.

referenced_tweets

Add referenced_tweets values? Default yes.

Value

A character with the characters of valid expansions.

Details

The set_expansions can be used to prepare the arguments for other rtweet functions.

See also

Examples

tweet_expansions()
#> [1] "author_id"                      "in_reply_to_user_id"           
#> [3] "geo.place_id"                   "entities.mentions.username"    
#> [5] "edit_history_tweet_ids"         "attachments.media_keys"        
#> [7] "attachments.poll_ids"           "referenced_tweets.id"          
#> [9] "referenced_tweets.id.author_id"
user_expansions()
#> [1] "pinned_tweet_id"
set_expansions()
#>  [1] "author_id"                      "in_reply_to_user_id"           
#>  [3] "geo.place_id"                   "entities.mentions.username"    
#>  [5] "edit_history_tweet_ids"         "attachments.media_keys"        
#>  [7] "attachments.poll_ids"           "referenced_tweets.id"          
#>  [9] "referenced_tweets.id.author_id" "pinned_tweet_id"               
#> [11] "owner_id"