Skip to contents

The GitHub action created would deploy a pkgdown site of your package on the gh-pages branch.

Usage

gha_pkgdown_branch(
  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 <pkg>/.github/workflows.

Details

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

See also

Examples

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