Learn R Programming

rtweet (version 1.2.1)

tweet_embed: Create a Tweet Embed

Description

Twitter API GET call to retieve the tweet in embedded form.

Usage

tweet_embed(screen_name, status_id, ...)

Value

character

Arguments

screen_name

character, screen name of the user

status_id

character, status id

...

parameters to pass to the GET call. See https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-oembed for details.

See Also

Examples

Run this code
name   <- 'kearneymw'
status <- '1087047171306856451'

tweet_embed(screen_name = name, status_id = status)

tweet_embed(
 screen_name = name,
 status_id = status,
 hide_thread = TRUE, 
 hide_media = FALSE, 
 align = 'center'
)

Run the code above in your browser using DataLab