Post a thread
Usage
post_thread(
texts,
images = NULL,
image_alts = NULL,
thread_df = NULL,
verbose = NULL,
.token = NULL
)
Arguments
- texts
a vector of skeet (post) texts
- images
paths to images to be included in each post
- image_alts
alt texts for the images to be included in each post
- thread_df
instead of defining texts, images and image_alts, you can also create a data frame with the information in columns of the same names.
- verbose
Whether to print status messages to the Console (
TRUE
/FALSE
). Package default (whenNULL
) is to have status messages. Can be changed withSys.setenv(ATR_VERBOSE = FALSE)
.- .token
If you manage your own tokens, you can supply it here. Usually
NULL
is OK and will automatically load or guide you to generate a token.
Examples
if (FALSE) { # \dontrun{
# post three messages in a thread
thread <- post_thread(c("Post 1", "Post 2", "Post 3"))
# delete the thread
delete_post(thread$uri)
} # }