Skip to content

Commit

Permalink
deps to description, caching
Browse files Browse the repository at this point in the history
  • Loading branch information
gabora committed Jul 25, 2023
1 parent 9ac1c06 commit e724bb5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/bot_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ jobs:
with:
r-version: '4.3'

- name: Install dependencies
run: |
install.packages(c('httr', 'jsonlite', 'purrr', 'dplyr', 'readr',
'stringr', 'rlist', 'slackr', 'stringdist','googledrive','base64enc'))
shell: Rscript {0}
# This should install dependencies from the DESCRIPTION. Caching them too.
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2

#- name: Install dependencies
# run: |
# install.packages(c('httr', 'jsonlite', 'purrr', 'dplyr', 'readr',
# 'stringr', 'rlist', 'slackr', 'stringdist','googledrive','base64enc'))
# shell: Rscript {0}

- name: test bot
run: Rscript bot_test.r ${{secrets.CREDENTIALS}} ${{secrets.STATEFILE_GDRIVE}} ${{secrets.SLACK_BOT_TOKEN}} ${{secrets.F1000AUTH}}
23 changes: 23 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Package: f1000slack
Title: F1000slack
Version: 0.0.0.9000
Authors@R:
person("First", "Last", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "YOUR-ORCID-ID"))
Description: What the package does (one paragraph).
License: GPL3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
Depends:
httr,
jsonlite,
purrr,
dplyr,
readr,
stringr,
rlist,
slackr,
stringdist,
googledrive,
base64enc

0 comments on commit e724bb5

Please sign in to comment.