Skip to content

Commit

Permalink
Try using remotes to find the dependencies, but install them with Bio…
Browse files Browse the repository at this point in the history
…cManager::install() instead of remotes::install_deps() given https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016675.html and r-lib/remotes#296
  • Loading branch information
lcolladotor committed Apr 26, 2020
1 parent bae121d commit e0f61f5
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .github/workflows/check-bioc.yml
Expand Up @@ -138,9 +138,18 @@ jobs:
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
## Locate the package dependencies
deps <- remotes::dev_package_deps(dependencies = TRUE)
## Install any that need to be updated using BiocManager to avoid
## the issues described at
## https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016675.html
## https://github.com/r-lib/remotes/issues/296
remotes::install_cran("BiocManager")
BiocManager::install(deps$package[deps$diff != 0])
## For running the checks
remotes::install_cran("rcmdcheck")
BiocManager::install("BiocCheck")
## Copy all the installed packages to a location where BiocCheck
Expand Down Expand Up @@ -326,7 +335,7 @@ jobs:
if: runner.os == 'Windows'
run: |
## Required to install TxDb.Hsapiens.UCSC.hg19.knownGene, reported to bioc-devel
remotes::install_cran('tibble')
# remotes::install_cran('tibble')
shell: Rscript {0}

- name: Install BiocManager
Expand All @@ -339,15 +348,21 @@ jobs:
BiocManager::install(version = Sys.getenv('BIOCVERSIONNUM'))
shell: Rscript {0}

- name: Install dependencies
- name: Install dependencies
run: |
## Need GenomeInfoDbData first -- reported to bioc-devel
BiocManager::install('GenomeInfoDbData')
## Locate the package dependencies
deps <- remotes::dev_package_deps(dependencies = TRUE)
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
## Install any that need to be updated using BiocManager to avoid
## the issues described at
## https://stat.ethz.ch/pipermail/bioc-devel/2020-April/016675.html
## https://github.com/r-lib/remotes/issues/296
remotes::install_cran("BiocManager")
BiocManager::install(deps$package[deps$diff != 0])
if (!requireNamespace("BiocCheck", quietly = TRUE)) BiocManager::install("BiocCheck")
## For running the checks
remotes::install_cran("rcmdcheck")
BiocManager::install("BiocCheck")
shell: Rscript {0}

- name: Check
Expand Down

0 comments on commit e0f61f5

Please sign in to comment.