-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 1.46 KB
/
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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
_R_CHECK_FORCE_SUGGESTS_: false
steps:
- name: Install GSL
run: brew install gsl
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- name: Install dependencies
run: |
install.packages(c("remotes","rcmdcheck"))
install.packages(c("devtools","Rcpp","RcppArmadillo"))
install.packages(c("RcppParallel","MBSP","mvtnorm","matrixStats"))
install.packages(c("testthat","varbvs"))
remotes::install_github("stephenslab/ebnm",upgrade="never",force=TRUE)
remotes::install_github("stephenslab/mashr",upgrade="never",force=TRUE)
remotes::install_github("willwerscheid/flashier",upgrade="never",force=TRUE)
shell: Rscript {0}
- name: Check
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(build_args = "--no-build-vignettes",args = c("--no-manual","--ignore-vignettes"),error_on = "error")
shell: Rscript {0}