slackr_upload enables you upload files to Slack and
(optionally) post them to one or more channels (if channels is not empty).
slackr_upload(
filename,
title = NULL,
initial_comment = NULL,
channels = Sys.getenv("SLACK_CHANNEL"),
token = Sys.getenv("SLACK_TOKEN"),
thread_ts = NULL
)httr response object from POST call (invisibly)
httr response object from POST call (invisibly)
path to file.
Title of file.
The message text introducing the file in specified channels.
Comma-separated list of channel names or IDs where the file will be shared.
Authentication token bearing required scopes.
Provide another message's ts value to upload this file as a reply. Never use a reply's ts value; use its parent instead.
Quinn Weber (ctb), Bob Rudis (aut)
slackr_setup(), slackr_dev(), slackr_save()