Skip to content
check-square

GitHub Action

R-actions

v1.2 Latest version

R-actions

check-square

R-actions

Automatically build and test your R projects

Installation

Copy and paste the following snippet into your .yml file.

              

- name: R-actions

uses: Swechhya/R-actions@v1.2

Learn more about this action in Swechhya/R-actions

Choose a version

R package build and test action

This action is designed to automatically run build and check for R packages on their code with every commit.

Example Usage

To get this action running in your project, add the following config to .github/workflows/Rbuild.yml:

name: R Build and Checks
on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: R Build and Checks
      uses: Swechhya/R-actions@v1.2
      with:
        action: 'all'
        needsBioc: false
        buildSubDirectory: './'

The action property can be any one of:

  • build Only builds the package
  • all Runs build and checks the built package

The needsBioc property can be any one of:

  • true Installs bioconductor and dependencies
  • false Only installs CRAN dependencies