Skip to content

Merge pull request #2 from davidycliao/imgbot #3

Merge pull request #2 from davidycliao/imgbot

Merge pull request #2 from davidycliao/imgbot #3

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
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
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
if: runner.os == '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.GITHUB_PAT }}
run: |
Rscript -e "options(repos = c(CRAN = 'https://cloud.r-project.org/')); install.packages('remotes');"
- name: Check
run: |
Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')"
- name: Test (optional)
run: |
Rscript -e "devtools::test()"