Created
December 14, 2019 15:36
-
-
Save jonathanvoelkle/0318364f7211617d91d274507fd4615b to your computer and use it in GitHub Desktop.
Send a notification to slack from R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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