slackrUpload: Send a file to slack.com
Description
slackrUoload enables you upload files to slack.com and
(optionally) post them to one or more channels (if channels is not empty).Usage
slackrUpload(filename, title = basename(filename),
initial_comment = basename(filename), channels = "",
api_token = Sys.getenv("SLACK_API_TOKEN"))Arguments
title
title on slack (optional - defaults to filename)
initial_comment
comment for file on slack (optional - defaults to filename)
channels
slack.com channels to save to (optional)
Value
httr response object from POST call