diff --git a/R/RT_functions.R b/R/RT_functions.R index 9d0e35b..4b72637 100644 --- a/R/RT_functions.R +++ b/R/RT_functions.R @@ -38,7 +38,7 @@ create_ticket <- function(award, requestor) { rt_base = 'https://support.nceas.ucsb.edu/rt') #check to see if the object ticket is created successfully - if(!exists(ticket)) { + if(!exists("ticket")) { out <- sprintf('I failed to create a ticket for award: %s, from requestor: %s', award, requestor) slackr::slackr_bot(out) return('rt_ticket_create_error') diff --git a/README.md b/README.md index d1a137f..a335fc2 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ Every 24 hours the bot queries NSF's award [API](https://www.research.gov/common AON_RECURRING_INTERVAL=6 # Number of months to send recurring emails for AON data due ``` +- If you have issues logging in you might need to install the development branch of rt `remotes::install_github("nceas/rt@develop")` - If you are running locally you might need to set up slackbot `slackr::slackr_setup(channel = "#awardbot",incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"))` **Note** - please contact Chris for set up in Linux