Learn R Programming

rtweet (version 1.1.0)

Expansions: Expansions

Description

Twitter parameters to add more fields on the returned values. Main ones:

  • Tweet

    • Referenced tweets

    • Attachments

  • User

Usage

tweet_expansions(attachments = TRUE, referenced_tweets = TRUE)

user_expansions()

Value

A character with the characters of valid expanions.

Arguments

attachments

Add attachments values? Default yes.

referenced_tweets

Add referenced_tweets values? Default yes.

References

https://developer.twitter.com/en/docs/twitter-api/expansions

See Also

Fields

Examples

Run this code
tweet_expansions()
user_expansions()

Run the code above in your browser using DataLab