use_r_cmd_check.RdUse workflow to run r cmd check on Linux, Mac, and Windows GitHub Actions
use_r_cmd_check(
workflow_name = "call-r-cmd-check.yml",
build_trigger = "push_to_main",
use_full_build_matrix = FALSE,
depends_on_tmb = FALSE,
depends_on_quarto = FALSE,
additional_args = NULL,
tag_ghactions4r = NULL
)What to name the github action workflow locally. Must
have the file extension .yml
Select the event that triggers the workflow. Options are:
push_to_mainRun on pushing commits to main (default)
push_to_all_branchesRun on pushing commits to any branch
pull_requestRun when a pull request is opened, reopened, or updated
manuallyRun manually with the workflow_dispatch trigger
weeklyRun on the default branch (usually main) once a week
Multiple build triggers are allowed; specify them as a vector. Note that invalid build triggers will be silently removed as long as one build trigger is specified correctly.
Run R cmd check with two older versions of R in addition to the three runs that use the release version.
Adds an option that install Matrix from source for windows and Mac builds to solved a nuanced issue for packages dependent on TMB. See this google groups thread for more information.
Adds an option that installs quarto as a dependency.
A named list of additional command line arguments to be passed to the workflow. The names of the list represent the platforms (windows, macos, or ubuntu), and the values are character vectors of arguments. These additional arguments are executed after the step that checks out the repository and before the step that sets up R.
Tag of ghactions4r workflow to pin to for the reusable workflow. This ensures compatibility with a specific version of ghactions4r functions. The tradeoff is that fixes will not happen automatically; instead, the user will have to update the pinned version of the caller workflow used. See the options by looking at the ghactions4r tags. Another option is to pin to commit hashes, but the user will need to do this by manually editing the caller workflow after creation. See github documentation on security to understand how this is more secure. Again, the tradeoff is that the workflow will not be automatically updated.