neurogenomics/rworkflows

rworkflows: Full workflow to test, document, and deploy R packages.

View on GitHub

Trust Signals

Scorecard Score
Scorecard 4–6scored Jul 6, 2026
Maintenance Recency
Activelast commit May 6, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: neurogenomics/rworkflows@6aaf49348859a96eea744b1907b1fe850e3ead5e # v1.0.12

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
run_bioccheckRun Bioconductor checks. Must pass in order to continue workflow. true
run_rcmdcheckRun R CMD checks. Must pass in order to continue workflow. true
as_cranWhen running R CMD checks, use the '--as-cran' flag to apply CRAN standards.
run_vignettesBuild and check R package vignettes. true
run_covrRun code coverage tests and publish results to Codecov. true
run_pkgdownKnit the README.Rmd (if available), build documentation website, and deploy to gh-pages branch. true
has_testthatRun unit tests with the `testthat` package and report the results. Requires a subdirectory named 'tests'. true
run_lintrRun `lintr::lint_package()` and emit GitHub annotations for each lint. Does not fail the workflow by default. true
run_spellingRun `spelling::spell_check_package()` and surface any misspellings via GitHub annotations. Does not fail the workflow by default. true
has_runitRun unit tests with the `RUnit` package. Requires a subdirectory named 'unitTests'. false
has_latexInstall a suite of LaTeX dependencies used for rendering Sweave (.rnw) and other documentation files. false
tinytex_installerWhich release of tinytex (bundles of LaTeX packages) to use. All options can be found here: https://github.com/rstudio/tinytex-releases/ Note, 'TinyTeX-2' is only available for 'tinytex_version: daily'. TinyTeX-1
tinytex_versionWhich version of tinytext to use. When set to '', uses the latest daily build. All versions can be found here: https://github.com/rstudio/tinytex-releases/releases ""
pandoc_versionWhich version of pandoc to use. For details see here: https://github.com/r-lib/actions/tree/v2-branch/setup-pandoc 2.19
run_dockerWhether to build and push a Docker container to DockerHub. false
docker_registryDocker container registry to push to. Options include: - ghcr.io : GitHub Container Registry (https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry) - docker.io : DockerHub (https://hub.docker.com/) ghcr.io
docker_userDocker registry username. Not used when `docker_registry="ghcr.io"`.
docker_orgDocker registry organization name. Can be the same as `docker_user`. Not used when `docker_registry="ghcr.io"`.
DOCKER_TOKENDocker registry authentication token. Not used when `docker_registry="ghcr.io"`.
GITHUB_TOKENGitHub authentication token with permissions to push to the R package's GitHub repository. Also used to bypass GitHub download limits. By default, uses {{ secrets.GITHUB_TOKEN }} which is automatically set up by GitHub. However users can also choose to pass a custom GitHub secret variable (e.g. {{ secrets.PAT_GITHUB }}) which allows access to private repositories. Read here for more details: https://docs.github.com/en/actions/security-guides/automatic-token-authentication.
CODECOV_TOKENCodecov repository token needed to upload coverage reports. Providing this token helps prevent report upload failures by bypassing Codecov's GitHub API rate limits. Read here for more details: https://docs.codecov.com/docs/adding-the-codecov-token
cache_versionWhich cache version to use. Change this when trying to avoid using previous caches. cache-v1
runner_osThe Operating System (OS) that the workflow is running on. Linux
timeoutThe maximum time to wait for long R processes like dependency installations, downloads, and code checks. 2000
miniforge_variantIf provided, this variant of Miniforge will be downloaded and installed. If `miniforge_variant=false`, Miniforge will not be installed at all. If `miniforge_variant=""`, the "Miniforge3" variant will be installed. If `miniforge_version` is not provided, the `latest` version will be used. Currently-known values: - "Miniforge3" (default) - "Miniforge-pypy3". Note: "Mambaforge" and "Mambaforge-pypy3" are discontinued and will 404. Visit https://github.com/conda-forge/miniforge/releases/ for more information on available variants. false
miniforge_versionIf provided, this version of the given Miniforge variant will be downloaded and installed. If `miniforge_variant` is not provided, `Miniforge3` will be used. Visit https://github.com/conda-forge/miniforge/releases/ for more information on available versions. latest
activate_environmentEnvironment name (or path) to activate on all shells. Default is `test` which will be created in `$CONDA/envs/test`. If an empty string is used, no environment is activated by default (For `base` activation see the `auto-activate-base` option). If the environment does not exist, it will be created and activated. If `environment-file` is used and you want that to be the environment used, you need to explicitely provide the name of that environment on `activate-environment`. If using sh/bash/cmd.exe shells please read the IMPORTANT! section on the README.md! to properly activate conda environments on these shells. test
environment_filePath or URL to a .yml file to build the conda environment with. For more information see: https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file ""
channelsConda configuration. Comma separated list of channels to use in order of priority. See https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/ for more information. ""
free_diskspaceFree up additional disk space by deleting non-essential sofwares. false
run_telemetryWhether to run the workflow telemetry action: https://github.com/catchpoint/workflow-telemetry-action true
force_installWhether to force install packages. If `true`, all packages will be reinstalled, bypassing the cache. Recommended to set to `true` when pushing changes without updating R package version, such as during pre-release phase of developement. false
ncpusNumber of CPUs to use for R package installation. Higher values can speed up the dependency installation process but may result in spurious errors. Default is 2. 2

no outputs