R/zzz.R

Defines functions .onLoad

.onLoad <- function(libname, pkgname){
  if (Sys.getenv("SENDGRID_API") != "") {
    keyring::key_set_with_value(service = "apikey",
                                username = "sendgridr",
                                password = Sys.getenv("SENDGRID_API"))
  }
}

Try the sendgridr package in your browser

Any scripts or data that you put into this service are public.

sendgridr documentation built on Nov. 10, 2022, 5:15 p.m.