Skip to content

Commit

Permalink
Merge pull request #33 from laijasmine/main
Browse files Browse the repository at this point in the history
Add minimum versions
  • Loading branch information
Jasmine authored Mar 11, 2021
2 parents 6163c08 + a2bf87c commit 9c26645
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: r
dist: bionic
language: r
r:
- release #latest minor release
- devel #from R git mirror of R SVN trunk
sudo: false
cache: packages
20 changes: 11 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ Authors@R: c(
Maintainer: Dominic Mullen <[email protected]>
Description: Creates an NSF awards database for the Arctic Data Center. Sends periodic correspondence to awardees.
License: Apache License (== 2.0)
Depends:
R (>= 4.0.0)
Imports:
dplyr,
httr,
lubridate,
magrittr,
RCurl,
rt,
slackr,
stringr,
XML
dplyr (>= 1.0.2),
httr (>= 1.4.2),
lubridate (>= 1.7.9),
magrittr (>= 2.0.1),
RCurl (>= 1.98-1.2),
rt (>= 1.0.1),
slackr (>= 2.0.0),
stringr (>= 1.4.0),
XML (>= 3.99-0.5)
Suggests:
testthat
Remotes:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Please follow this closely so no emails are sent to researchers by mistake while
RT_PASS="your_rt_password" # Your RT password
```

2. Set up slackbot: `slackr::slackr_setup(channel = "#awardbot",incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"))`
2. Set up slackbot: `slackr::slackr_setup(channel = "#awardbot",incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"), cacheChannels = F)`

3. Login to RT: `rt::rt_login()`

Expand Down
6 changes: 4 additions & 2 deletions inst/main_cron_script.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ library(awardsBot)

# Log in to RT/SLACK
rt::rt_login(Sys.getenv('RT_USER'), Sys.getenv('RT_PASS'), Sys.getenv('RT_URL'))
slackr::slackr_setup(channel = '#awardbot', username = 'awardbot',
incoming_webhook_url = Sys.getenv('SLACK_WEBHOOK_URL'))

slackr::slackr_setup(channel = "#awardbot", username = 'awardbot',
incoming_webhook_url = Sys.getenv("SLACK_WEBHOOK_URL"),
cacheChannels = F)

awardsBot::main()

0 comments on commit 9c26645

Please sign in to comment.