Skip to content

Update R package on Windows - from GitHub.yml #295

Update R package on Windows - from GitHub.yml

Update R package on Windows - from GitHub.yml #295

name: Install local R package on MacOS.
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
r-version: ['4.1.1']
steps:
- uses: actions/checkout@v3
# Install XQuartz for tcltk support
- name: Install XQuartz
run: |
brew install --cask xquartz
brew list --cask | grep xquartz
- name: List Applications
run: ls /Applications
- name: Check XQuartz installation
run: ls /Applications/Utilities/XQuartz.app
- name: Set DISPLAY for XQuartz
run: |
echo "DISPLAY=:0.0" >> $GITHUB_ENV
- name: Start XQuartz
run: open /Applications/Utilities/XQuartz.app
- name: Set non-interactive graphics device
run: |
echo "options(device = 'pdf')" >> ~/.Rprofile
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies
run: |
install.packages("remotes")
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: |
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "never")
shell: Rscript {0}