tweet_screenshot | R Documentation |
Takes a screenshot of the tweet that is automatically embedded in R Markdown documents or that can be saved for use later.
tweet_screenshot( tweet_url, maxwidth = 550, scale = 2, file = NULL, link_color = NULL, ... )
tweet_url |
The URL for the tweet, or use |
maxwidth |
The maximum width of a rendered Tweet in whole pixels. A
supplied value under or over the allowed range will be returned as the
minimum or maximum supported width respectively; the reset width value will
be reflected in the returned |
scale |
Scale the tweet for a better quality screenshot. Default is 2. |
file |
A character string of output files. Can end with |
link_color |
Adjust the color of Tweet text links with a hexadecimal color value. |
... |
Arguments passed on to
|
Other Tweet-embedding functions:
include_tweet()
,
tweet_embed()
## Not run: tmpimg <- tempfile(fileext = "png") tweet_screenshot( tweet_url = "https://twitter.com/alexpghayes/status/1211748406730706944", file = tmpimg ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.