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 = basename(filename),
initial_comment = basename(filename),
channels = Sys.getenv("SLACK_CHANNEL"),
bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN")
)path to file
title on Slack (optional - defaults to filename)
comment for file on slack (optional - defaults to filename)
Slack channels to save to (optional)
Slack bot user OAuth token
httr response object from POST call (invisibly)
httr response object from POST call (invisibly)