Files
civilyticsR/.gitea/workflows/check.yaml
T
jared 53299c7e88
R-CMD-check / R CMD check (push) Failing after 10m49s
ci: run on host runner, install R from CRAN PPA
Remove container directive — rocker/r-ver has no Node.js so actions/checkout
(a JS action) fails with exit 127. Install R 4.x from the official CRAN
Ubuntu PPA on the host runner instead.
2026-05-17 09:12:37 -06:00

52 lines
1.5 KiB
YAML

name: R-CMD-check
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
check:
name: R CMD check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up R
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends software-properties-common dirmngr
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc \
| sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
sudo add-apt-repository \
"deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends r-base r-base-dev
- name: Install system dependencies
run: |
sudo apt-get install -y --no-install-recommends \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libcairo2-dev \
libjpeg-dev \
libpng-dev \
libfontconfig1-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libtiff5-dev
- name: Install R dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Run R CMD check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning")
shell: Rscript {0}