Skip to content

Add package_installed function and enhance check_pdf documentation #117

Add package_installed function and enhance check_pdf documentation

Add package_installed function and enhance check_pdf documentation #117

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: lint
permissions: read-all
jobs:
lint:
# Only run this job if the repository is elgabbas/ecokit
if: ${{ github.repository == 'elgabbas/ecokit'}}
# Only run this job if the commit message contains 'run-check'
# if: ${{ github.repository == 'elgabbas/ecokit' && contains(github.event.head_commit.message, 'run-check') }}
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v5
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint
- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true