Skip to content

Merge pull request #21 from uniofessex/v1.0.2 #40

Merge pull request #21 from uniofessex/v1.0.2

Merge pull request #21 from uniofessex/v1.0.2 #40

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: R Package CI for Windows
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
os: [windows-latest]
r-version: ['4.1.1']
steps:
- uses: actions/checkout@v4
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install system dependencies on Windows
run: |
choco install qpdf
choco install pkgconfiglite
choco install make
choco install miktex # Install LaTeX
- name: Set CRAN mirror and install R package dependencies
env:
GITHUB_PAT: ${{ secrets.MY_GITHUB_PAT }} # 使用新的 Secret 名称 MY_GITHUB_PAT
run: |
Rscript -e "options(repos = c(CRAN = 'https://cloud.r-project.org/')); install.packages(c('remotes', 'rjags', 'ggplot2', 'knitr'));"
Rscript -e "remotes::install_github('cran/basicspace')"
- name: Install rcmdcheck package
run: |
Rscript -e "install.packages('rcmdcheck')"
- name: Check
run: |
Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')"
- name: Test (optional)
run: |
Rscript -e "devtools::test()"
shell: pwsh

Check failure on line 61 in .github/workflows/r.yml

View workflow run for this annotation

GitHub Actions / R Package CI for Windows

Invalid workflow file

The workflow is not valid. .github/workflows/r.yml (Line: 61, Col: 5): Unexpected value 'shell' .github/workflows/r.yml (Line: 64, Col: 20): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp
env:
_R_INSTALL_TIME_PATCHES_: no
R_LIBS_USER: ${{ runner.temp }}/Library
TZ: UTC
_R_CHECK_SYSTEM_CLOCK_: FALSE
NOT_CRAN: true