fix two bugs: std::min(vec vec) only return the smaller size vec and … #5
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
on: [push, pull_request] | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: r-lib/actions/setup-r@master | |
- uses: r-lib/actions/setup-pandoc@master | |
- name: Query dependencies | |
run: | | |
install.packages(c('remotes', 'rcmdcheck', 'covr', 'rmarkdown')) | |
remotes::install_deps(dependencies = TRUE) | |
saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2) | |
shell: Rscript {0} | |
- name: Cache R packages | |
uses: actions/cache@v1 | |
with: | |
path: ${{ env.R_LIBS_USER }} | |
key: macOS-r-3.6-${{ hashFiles('depends.Rds') }} | |
restore-keys: macOS-r-3.6- | |
- name: Check | |
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") | |
shell: Rscript {0} | |
- name: Test coverage | |
run: covr::codecov() | |
shell: Rscript {0} |