Skip to content

R-CMD-check

R-CMD-check #20

Workflow file for this run

name: R-CMD-check
on:
workflow_dispatch:
jobs:
R-CMD-check:
runs-on: ubuntu-latest
# env:
# RENV_CONFIG_PAK_ENABLED: true
# with above uncommented, the workflow fails with the following error:
# Error in remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...),
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgit2-dev libsqliteodbc
- name: Create custom odbcinst.ini in a user-accessible directory
run: |
echo "[SQLite]" >> $HOME/odbcinst.ini
echo "Driver=/usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so" >> $HOME/odbcinst.ini
- uses: r-lib/actions/setup-pandoc@v2
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: "4.3.3"
use-public-rspm: true
- name: Install dependencies
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 1
working-directory: phenoRankeR
env:
RENV_CONFIG_REPOS_OVERRIDE: ${{ env.RSPM }}
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
working-directory: phenoRankeR
error-on: '"error"'
env:
ODBCSYSINI: /home/runner
DB_DRIVER: SQLite
DB_NAME: ":memory:"
# - name: Build package
# run: R CMD build phenoRankeR
# - name: Release package
# uses: softprops/action-gh-release@v2
# with:
# files: phenoRankeR_*.tar.gz
# prerelease: true