Skip to content

allow data matrix or SummarizedExperiment as input to functions #5

allow data matrix or SummarizedExperiment as input to functions

allow data matrix or SummarizedExperiment as input to functions #5

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: [master, devel]
paths:
- '.github/workflows/document.yaml'
- 'R/**'
pull_request:
branches: [master, devel]
release:
types: [published]
workflow_dispatch:
name: document
jobs:
document:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: document-${{ github.event_name != 'pull_request' || github.run_id }}
cancel-in-progress: true
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GH_DOCS }}
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::roxygen2
needs: roxygen2
- name: Document
run: roxygen2::roxygenise()
shell: Rscript {0}
- name: Commit and push changes
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
git add man/\* NAMESPACE
git commit -m "Update documentation" || echo "No changes to commit"
git pull --ff-only
git push origin master || echo "No changes to commit"