Skip to content

Instantly share code, notes, and snippets.

View leoniedu's full-sized avatar

Eduardo Leoni leoniedu

  • IBGE
  • Salvador, Brazil
View GitHub Profile
@hadley
hadley / postmarkapp.r
Created June 4, 2013 17:16
Send an email from R using postmarkapp
library(base64enc)
library(RJSONIO)
library(httr)
default_key <- function () {
key <- Sys.getenv("POSTMARKAPP_API_KEY")
if (key == "") {
stop("Either provide key or set envvar POSTMARKAPP_API_KEY", call. = FALSE)
}
key