tweet_shot | R Documentation |
Provide a status id or a full Twitter link to a tweet and this function will capture an image of the tweet — or tweet + thread (if there are Twitter-linked replies) — from the mobile version of said tweet/thread.
tweet_shot(statusid_or_url, zoom = 3, scale = TRUE)
statusid_or_url |
a valid Twitter status id (e.g. " |
zoom |
a positive number >= 1. See the help for |
scale |
auto-scale the image back to 1:1? Default it |
For this to work, you will need to ensure the packages in Suggests:
are
installed as they will be loaded upon the first invocation of this function.
Use the zoom
factor to get more pixels which may improve the text rendering
of the tweet/thread.
magick
object
rtweet-deprecated
## Not run:
if (auth_has_default()) {
shot1 <- tweet_shot("947061504892919808")
plot(shot1)
shot2 <- tweet_shot("https://twitter.com/ma_salmon/status/947061504892919808")
plot(shot2)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.