test_main: Test main function Wrapper for main, with additional email...

Description Usage Arguments Value

View source: R/main.R

Description

Test main function Wrapper for main, with additional email testing argument. Uses a dummy database that will send out 2 tickets using the email specified

Usage

1
2
3
4
5
6
7
8
9
test_main(
  database_path = Sys.getenv("DATABASE_PATH"),
  lastrun_path = Sys.getenv("LASTRUN_PATH"),
  current_date = as.character(Sys.Date()),
  annual_report_time = Sys.getenv("ANNUAL_REPORT_TIME"),
  initial_aon_offset = Sys.getenv("INITIAL_AON_OFFSET"),
  aon_recurring_interval = Sys.getenv("AON_RECURRING_INTERVAL"),
  email
)

Arguments

database_path

(character) Path to the database of awards and correspondences

lastrun_path

(character) Determines where the bot stores its state

current_date

(character) today's date

annual_report_time

(numeric) time in months after 'start_date' to send the first annual report reminder

initial_aon_offset

(numeric)Number of months after award startDate to send first AON data due reminder

aon_recurring_interval

(numeric) Number of months to send recurring emails for AON data due

email

The email to send the tickets to

Value

nothing


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