Skip to content

Maj package

Maj package #251

Workflow file for this run

on:
push:
branches:
- main
- master
- dev
- test-docker-ci
pull_request:
branches:
- main
- master
- dev
name: R-CMD-check-docker-renv
jobs:
R-CMD-check-docker-renv:
runs-on: ubuntu-latest
container: rocker/geospatial:4.3.0
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RENV_PATHS_ROOT: ~/.local/share/renv
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.local/share/renv
key: ubuntu-latest-renv-${{ hashFiles('**/renv.lock') }}
restore-keys: |
ubuntu-latest-renv-
- name: Install system dependencies Linux
run: sudo apt-get update -qq && apt install -y libharfbuzz-dev libfribidi-dev
- name: Install dependencies
run: |
source("renv/activate.R")
renv::restore()
renv::install("remotes")
remotes::install_local(upgrade = "never")
remotes::install_cran("rcmdcheck", upgrade = "never")
shell: Rscript {0}
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ubuntu-r-results
path: check