powered by
Sends a message to a slack channel.
slackr_msg( txt = "", channel = Sys.getenv("SLACK_CHANNEL"), username = Sys.getenv("SLACK_USERNAME"), icon_emoji = Sys.getenv("SLACK_ICON_EMOJI"), bot_user_oauth_token = Sys.getenv("SLACK_BOT_USER_OAUTH_TOKEN"), ... )
text message to send to Slack. If a character vector of length > 1 is passed in, they will be combined and separated by newlines.
which channel to post the message to (chr)
what user should the bot be named as (chr)
what emoji to use (chr) "" will mean use the default
""
Slack bot user OAuth token
other arguments passed to the Slack API chat.postMessage call
chat.postMessage
the response (invisibly)
slackr_setup(), slackr_bot(), slackr_dev(), slackr_save(), slackr_upload()
slackr_setup()
slackr_bot()
slackr_dev()
slackr_save()
slackr_upload()
# NOT RUN { slackr_setup() slackr_msg("Hi") # }
Run the code above in your browser using DataLab