docs: added CRAN comments #412
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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
paths: | |
- '**/R-CMD-check.yaml' | |
- 'R/**' | |
- 'vignettes/**' | |
- 'tests/**' | |
- 'data/**' | |
- 'inst/**' | |
- 'man/**' | |
- 'DESCRIPTION' | |
- 'NAMESPACE' | |
pull_request: | |
branches: [main, master] | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
#- {os: macOS-latest, r: 'release', pkg-type: 'binary', renv: ''} | |
- {os: windows-latest, r: 'release', pkg-type: 'binary', renv: ''} | |
- {os: ubuntu-latest, r: 'devel', pkg-type: 'source', renv: ''} | |
- {os: ubuntu-latest, r: 'release', pkg-type: 'source', renv: ''} | |
- {os: ubuntu-latest, r: 'oldrel-1', pkg-type: 'source', renv: ''} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_PKG_TYPE: ${{ matrix.config.pkg-type }} | |
RENV_PROFILE: ${{ matrix.config.renv }} | |
CI: true | |
_R_CHECK_FORCE_SUGGESTS_: false | |
_R_CHECK_DEPENDS_ONLY_: true | |
_R_CHECK_CRAN_INCOMING_REMOTE_: false | |
_R_CHECK_CRAN_INCOMING_: false | |
_R_CHECK_RD_XREFS_: true | |
R_KEEP_PKG_SOURCE: true | |
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
RGL_USE_NULL: 'TRUE' | |
DISPLAY: ':1.1' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
- name: Setup pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Setup TinyTeX | |
uses: r-lib/actions/setup-tinytex@v2 | |
- name: Install makeindex | |
run: tlmgr install makeindex | |
- name: Test latex | |
shell: bash | |
run: | | |
pdflatex --version | |
makeindex | |
- name: Install Linux dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get install -yq libglu1-mesa-dev freeglut3-dev mesa-common-dev libcurl4-openssl-dev libxml2-dev libharfbuzz-dev libfribidi-dev libfftw3-dev | |
Xvfb :1 -screen 1 1024x768x24 -ac & | |
- name: Install macOS dependencies | |
if: runner.os == 'macOS' | |
run: | | |
brew install --cask xquartz | |
sudo /usr/X11/bin/xvfb :1 -screen 1 1024x768x24 -ac & | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
- uses: actions/cache@v1 | |
with: | |
path: ${{ env.R_LIBS_USER }} | |
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }} | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
args: 'c("--as-cran", "--no-multiarch")' | |
build_args: 'c()' |