View source: R/include_tweet.R
include_tweet | R Documentation |
Similar to knitr::include_graphics()
, but for tweets. In HTML documents,
the tweet is embedded using tweet_embed()
and for all other documents types
a screen shot of the tweet is rendered and used tweet_screenshot()
. If you
would rather that just the text of the tweet be included in non-HTML outputs,
use tweet_embed()
.
include_tweet(tweet_url, plain = FALSE, ...) tweet_markdown(tweet_url, ...)
tweet_url |
The URL for the tweet, or use |
plain |
Embeds the tweet without including Twitter's JavaScript code.
This means the tweets will be displayed as minimally styled HTML in
Note that for HTML outputs, you can't selectively choose whether or not a tweet is rendered in plain HTML if you include multiple tweet. Including one rich embedded tweet will trigger rich embedding of all tweets loaded on the page. |
... |
Arguments passed on to
|
An htmltools::tagList()
to include a tweet in an HTML document, or
a screen shot of the tweet for use in non-HTML outputs.
tweet_markdown
: Return a tweet as plain markdown.
Other Tweet-embedding functions:
tweet_embed()
,
tweet_screenshot()
include_tweet("https://twitter.com/dsquintana/status/1275705042385940480")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.