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_standard(
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
)
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.
This action installs the latest release R version on macOS and runs R CMD check
via the rcmdcheck package.
This action runs R CMD check via the rcmdcheck package on the three major OSs (linux, macOS and Windows) on the release version of R and R-devel. This action is most appropriate when you plan to eventually submit your package to CRAN or Bioconductor.
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()
.
github_actions for generic workflows.