Learn R Programming

reproducibleRchunks (version 1.2.0)

use_github_action: Add GitHub Action to test reproducibility

Description

Creates a GitHub Actions workflow that runs isReproducible() on all R Markdown files in the repository. The workflow installs pandoc so that the documents can be rendered. Depending on the result, a badge file reproducibleRchunks-badge.svg is generated indicating successful, failing or unknown reproduction status.

Usage

use_github_action(
  files = NULL,
  path = ".github/workflows/reproducibleR.yml",
  packages = NULL
)

Value

Invisibly returns the path to the created workflow file.

Arguments

files

Character. File(s) that should be tested for reproducibility. If NULL, all Rmd files in the directory.

path

Path to the workflow file to create. Defaults to .github/workflows/reproducibleR.yml.

packages

Character. If NULL, necessary R packages are inferred automatically.