Skip to content

Instantly share code, notes, and snippets.

@jonathanvoelkle
Created December 14, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanvoelkle/0318364f7211617d91d274507fd4615b to your computer and use it in GitHub Desktop.
Save jonathanvoelkle/0318364f7211617d91d274507fd4615b to your computer and use it in GitHub Desktop.
Send a notification to slack from R
send_notification <- function() {
library(httr)
# webhook url
slack_url <- "https://hooks.slack.com/services/..."
r <- POST(slack_url, body = list(text = "R has finished"), encode = "json")
r
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment