expr, evaluates it and sends the output to a Slack
chat destination. Useful for logging, messaging on long compute tasks or
general information sharing.
1 2 3 4
expressions to be sent to Slack
which channel to post the message to (chr)
what user should the bot be named as (chr)
what emoji to use (chr)
your full Slack API token
By default, everyting but
expr will be looked for in a "
environment variable. You can override or just specify these values directly instead,
but it's probably better to call
You need a https://www.slack.com account and will also need to
setup an API token https://api.slack.com/
Also, you can pass in
as_user=TRUE, the default, as part of the
parameters and the Slack API will post the message as your logged-in
user account (this will override anything set in
as_user=FALSE, results in the Slack API posting the
message as set in
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.