Skip to content

[BUG] When support set is range(k) #207

[BUG] When support set is range(k)

[BUG] When support set is range(k) #207

Workflow file for this run

name: R docs
on:
push:
paths:
- 'R-package/**'
- 'src/**'
- '.github/workflows/r_website.yml'
- '!R-package/.gitignore'
- '!R-package/cran-comments.md'
- '!R-package/pre-release.R'
- '!R-package/tests/**'
- '!R-package/configure.win'
- '!R-package/abess.Rproj'
- '!R-package/.covrignore'
pull_request:
paths:
- 'R-package/**'
- 'src/**'
- '.github/workflows/r_website.yml'
- '!R-package/.gitignore'
- '!R-package/cran-comments.md'
- '!R-package/pre-release.R'
- '!R-package/tests/**'
- '!R-package/configure.win'
- '!R-package/abess.Rproj'
- '!R-package/.covrignore'
jobs:
pkgdown:
name: pkgdown
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.ABESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps("R-package", dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
- name: Install dependencies
run: |
remotes::install_deps("R-package", dependencies = TRUE)
install.packages("pkgdown", type = "binary")
install.packages("survival", type = "binary")
install.packages("Hmisc", type = "binary")
install.packages("ROCR", type = "binary")
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL R-package
- name: Deploy package
run: |
Rscript -e 'pkgdown::deploy_to_branch("./R-package", new_process = FALSE, clean = TRUE)'