R function

Do you need to trigger a notification using R?

Note: it requires httr package (you can install it with install.packages("httr")).

notify17.R
notify17 <- function(rawAPIKey, title, content = '') {
  hookURL = paste0("https://hook.notify17.net/api/raw/", rawAPIKey)
  query <- list(title   = title,
                content = content)
  resp <- httr::POST(hookURL, body = query, encode = "form")
  print(httr::content(resp))
}

# Usage:

notify17('RAW_API_KEY',
         "Model training finished")