View source: R/tweets-generate.R
generate_tweet | R Documentation |
Generate a tweet
generate_tweet( pred, tweets, in_reply_to_tweets, preds, preds_long, shap_long, ..., prelude = NULL, appendix = NULL, user = .get_user_bot(), dry_run = TRUE, delete_plot = !dry_run, override = FALSE )
pred |
Data frame with |
tweets |
Tweets of the user (punditratio by default) who will be making a reply. Needed to check that a tweet hasn't already been made. |
in_reply_to_tweets |
Tweets of the user for whom a tweets will be made in reply to (xGPhilosophy by default). Needed for identifying the tweet to reply to. |
preds |
Predictions with at least |
preds_long |
Tidy predictions with at least five columns |
shap_long |
Tidy SHAP values with at least four columns |
... |
Extra parameters passed to . |
prelude, appendix |
Extra text to add to beginning or end of auto-generated tweet. |
user |
Who is making the reply. (pundit_ratio by default.) |
dry_run |
Whether or not to actually make a tweet. |
delete_plot |
Whether or not to delete plots made and attached to tweet. |
override |
Whether or not to override time filtering criteria (useful for testing). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.