Learn R Programming

slackr (version 1.2)

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

filename
path to file
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)
api_token
full API token

Value

  • httr response object from POST call

See Also

slackrSetup, dev.slackr, save.slackr