Posts direct message from user's Twitter account

post_message(text, user, media = NULL, token = NULL)

Arguments

text

Character, text of message.

user

Screen name or user ID of message target.

media

File path to image or video media to be included in tweet.

token

OAuth token. By default token = NULL fetches a non-exhausted token from an environment variable tokens.