Update README.md #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: R-CMD-check | |
on: [push, pull_request] | |
jobs: | |
R-CMD-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get install -y libmagick++-dev | |
- name: Check internet connection | |
run: | | |
ping -c 3 cran.r-project.org | |
- name: Install R package dependencies | |
run: | | |
install.packages('devtools') | |
install.packages('remotes') | |
remotes::install_deps(dependencies = TRUE) | |
shell: Rscript {0} | |
- name: Retry installing devtools if failed | |
if: failure() | |
run: | | |
install.packages('devtools') | |
shell: Rscript {0} | |
- name: Install DropletQC from GitHub | |
run: | | |
devtools::install_github("powellgenomicslab/DropletQC") | |
shell: Rscript {0} | |
- name: Check package | |
run: | | |
R CMD check --no-manual --as-cran | |
shell: Rscript {0} |