This action checks an R package using the rcmdcheck package.
Inputs available:
- args - default
c("--no-manual", "--as-cran")
. Arguments to pass to theargs
parameter ofrcmdcheck
. It must be an R expression in single quotes. - build_args - default
"--no-manual"
. Arguments to pass to thebuild_args
parameter ofrcmdcheck
. it must be an R expression in single quotes. - check-dir - default
"check"
. Arguments to pass to thecheck-dir
parameter ofrcmdcheck
. It must be an R expression in single quotes. - error-on - default
"warning"
. Arguments to pass to theerror-on
parameter ofrcmdcheck
. It must be an R expression in single quotes. - upload-artifacts - default
false
. Whether to upload all testthat snapshots as an artifact. - working-directory - default
"."
. If the R package to check is not in the root directory of your repository.
Basic:
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
- uses: r-lib/actions/check-r-package@v2
The scripts and documentation in this project are released under the MIT License
Contributions are welcome!