Skip to content

revert

revert #9

Workflow file for this run

on:
push:
branches:
- master
paths:
- DESCRIPTION
pull_request:
branches:
- master
paths:
- DESCRIPTION
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ubuntu-latest
container: bioconductor/bioconductor_docker:devel
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Query dependencies
run: |
saveRDS(remotes::dev_package_deps(dependencies = TRUE, repos = c(getOption('repos'), BiocManager::repositories())), 'depends.Rds', version = 2)
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v1
with:
path: r-pkg-cache
key: ${{ runner.os }}-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ runner.os }}-
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories(), Ncpu = 2L)
BiocManager::install('devtools')
BiocManager::install('BiocCheck')
remotes::install_cran('rcmdcheck', Ncpu = 2L)
shell: Rscript {0}
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error", check_dir = "check")
shell: Rscript {0}
- name: BiocCheck
run: |
BiocCheck::BiocCheck(".")
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash