Skip to contents

The GitHub action created would document your package (see update_docs()), would check it and would deploy the package on a gh-pages branch.

Usage

gha_update_docs(
  pkg = ".",
  overwrite = TRUE,
  platform = "macOS",
  version = "latest"
)

Source

r-lib/actions

Arguments

pkg

Path to a (subdirectory of an) R package.

overwrite

Overwrite the action if it was already present.

platform

Platform to use for deploying the package. See Details

version

Version of the platform. See Details.

Value

A GitHub Action on .github/workflows.

Details

Check https://github.com/actions/runner-images to see the available options.

Examples

if (FALSE) { # \dontrun{
# With Ubuntu 20.04
gha_update_docs(platform = "ubuntu", version = "20.04")
} # }