slackrBot: Output R expressions to a slack.com channel/user (as slackbot)
Description
Takes an expr, evaluates it and sends the output to a slack.com
chat destination. Useful for logging, messaging on long compute tasks or
general information sharing.
what emoji to use (chr) "" will mean use the default
incoming_webhook_url
which slack.com API endpoint URL to use
token
your webhook API token
Details
By default, everyting but expr will be looked for in a "SLACK_"
environment variable. You can override or just specify these values directly instead,
but it's probably better to call slackrSetup first.
This function uses the incoming webhook API and posts user messages as slackbot