Use a specific action, either one of the example actions from r-lib/actions/examples or a custom action given by the url parameter.

use_github_action(
name,
url = NULL,
save_as = NULL,
ignore = TRUE,
open = FALSE
)

use_github_action_check_release(
save_as = "R-CMD-check.yaml",
ignore = TRUE,
open = FALSE
)

use_github_action_check_full(
save_as = "R-CMD-check.yaml",
ignore = TRUE,
open = FALSE
)

use_github_action_pr_commands(
save_as = "pr-commands.yaml",
ignore = TRUE,
open = FALSE
)

## Arguments

name Name of the GitHub action, with or without .yaml extension The full URL to the GitHub Actions yaml file. By default, the corresponding action in https://github.com/r-lib/actions will be used. Name of the actions file. Defaults to basename(url) for use_github_action(). Should the newly created file be added to .Rbuildignore? Open the newly created file for editing? Happens in RStudio, if applicable, or via utils::file.edit() otherwise.

## use_github_action_check_release()

This action installs the latest release R version on macOS and runs R CMD check via the rcmdcheck package.

## use_github_action_check_full()

This action installs the last 5 minor R versions and runs R CMD check via the rcmdcheck package on the three major OSs (linux, macOS and Windows). This action is what the tidyverse teams uses on their repositories, but is overkill for less widely used packages, which are better off using the simpler use_github_action_check_release().

## use_github_action_pr_commands()

This workflow enables the use of 2 R specific commands in pull request issue comments. /document will use roxygen2 to rebuild the documentation for the package and commit the result to the pull request. /style will use styler to restyle your package.