Skip to content

Fix devel actions

Fix devel actions #194

name: build-checks-devel
on:
push:
branches: [ devel ]
pull_request:
branches:
- devel
jobs:
R-CMD-check:
runs-on: ubuntu-latest
container: rocker/r-ver:devel
steps:
- uses: actions/checkout@v2
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- name: Install system requirements
run: |
apt-get update
apt-get install -y --no-install-recommends apt-utils
apt-get install -y --no-install-recommends wget zlib1g-dev libfftw3-dev libxml2-dev libxt-dev curl libglpk-dev libcairo2-dev libmagick++-dev libcurl4-gnutls-dev libudunits2-dev libgdal-dev libproj-dev libnode-dev tk libv8-dev
LATEST_RELEASE=$(curl --silent "https://api.github.com/repos/jgm/pandoc/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")')
wget https://github.com/jgm/pandoc/releases/download/$LATEST_RELEASE/pandoc-${LATEST_RELEASE}-linux-amd64.deb
sudo dpkg -i pandoc-${LATEST_RELEASE}-linux-amd64.deb
apt-get clean
rm -rf /var/lib/apt/lists/*
- name: Install dependencies
run: |
install.packages("BiocManager")
BiocManager::install(version = "devel", update = TRUE, ask = FALSE, force = TRUE)
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories(), Ncpu = 2L)
shell: Rscript {0}
- name: Check
run: |
install.packages("rcmdcheck")
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
- name: BiocCheck
run: |
BiocManager::install("BiocCheck")
BiocCheck::BiocCheck(".")
shell: Rscript {0}
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}