Skip to content

Commit 4e6b0b1

Browse files
authored
update gha for R CMD check (#275)
* missed an updated test * update gha for R CMD check * move install down * hard dependencies * add other suggests * repos update * missed one DOI * edge case tests * hide other misc folders * add one more R CMD check
1 parent 5123a8c commit 4e6b0b1

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
env:
2323
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
2424
R_KEEP_PKG_SOURCE: yes
25+
_R_CHECK_FORCE_SUGGESTS_: "0" # CRAN sets to false
2526
steps:
2627
- uses: actions/checkout@v2
2728

@@ -35,17 +36,29 @@ jobs:
3536

3637
- uses: r-lib/actions/setup-r-dependencies@v2
3738
with:
38-
extra-packages: rcmdcheck, github::stan-dev/cmdstanr
39+
extra-packages: rcmdcheck, survival, flexsurv, testthat, usethis, vdiffr, tibble, xml2, knitr, rmarkdown, bayesplot, matrixcalc, WeightIt, MatchIt, BayesPPD, ggsurvfit, gbm, ggplot2, cobalt, table1, gt, gtsummary
40+
dependencies: '"hard"'
3941

4042
- name: Install system dependencies on Linux
4143
if: runner.os == 'Linux'
4244
run: |
4345
sudo apt-get update -y
4446
sudo apt-get install -y texlive-fonts-extra
4547
46-
- name: Install and unpack cmdstan
48+
- name: R CMD check before cmdstanr installed
49+
uses: r-lib/actions/check-r-package@v2
50+
51+
- name: Install cmdstanr but not cmdstan
52+
run: |
53+
Rscript -e "install.packages('cmdstanr', repos = c('https://mc-stan.org/r-packages/', getOption('repos')))"
54+
55+
- name: R CMD check after cmdstanr installed but before cmdstan
56+
uses: r-lib/actions/check-r-package@v2
57+
58+
- name: Install cmdstan
4759
run: |
4860
Rscript -e "cmdstanr::check_cmdstan_toolchain(fix = TRUE)"
4961
Rscript -e "cmdstanr::install_cmdstan()"
5062
51-
- uses: r-lib/actions/check-r-package@v2
63+
- name: R CMD check after cmdstanr and cmdstan are installed
64+
uses: r-lib/actions/check-r-package@v2

0 commit comments

Comments
 (0)