-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1021 Bytes
/
R-CMD-check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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}