Skip to contents

Post a message to the GitHub Slack channel

Usage

slack_post(message, webhook = Sys.getenv("SLACK_GITHUB_WEBHOOK"))

Arguments

message

One nonempty character string.

webhook

Incoming webhook for the GitHub Slack channel. Defaults to the SLACK_GITHUB_WEBHOOK environment variable.

Value

NULL, invisibly. Stops if Slack rejects the message.

Examples

if (FALSE) { # \dontrun{
slack_post("Production documentation build failed.")
} # }