knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(magrittr)
library(awardsBot)
db <- import_awards_db(file.path(system.file('example_db.csv', package = 'awardsBot')))
knitr::kable(db)

Add some kind of template text where %s will be replaced by the pi_name, id and title. Use \n for line breaks and test = TRUE to check out the formatting before sending.

create_new_ticket_correspondence(db = db, 
                                 "Dear %s, 
                                 \n We are writing to you today about your NSF Arctic Sciences award %s %s. 
                                 \n The Arctic Data Center Support Team", 
                                 test = TRUE)


NCEAS/awards-bot documentation built on Sept. 6, 2021, 1:47 a.m.