Provides daily updates on the CRAN check status of every package on CRAN for every flavor. CRAN package checks are available as a json file at https://flrsh-dev.github.io/cran-checks/{pkg}.json
.
This repository contains a GitHub Action that can be used to get daily updates of the check status of your package. If your package is ever failing a check, you will get an email notification from GitHub of this failure.
Create a new GitHub Action with
usethis::use_github_action(
url = "https://github.com/flrsh-dev/cran-checks/blob/main/check-pkg/cran-checks.yaml",
open = TRUE
)
Be sure to change the pkg
input to the name of your package.
Or, create the file manually. Create a file .github/workflows/cran-checks.yaml
.
Paste the below in the file.
name: Check CRAN status
on:
schedule:
# Runs daily at 4:00 PM UTC (9:00 AM PST)
- cron: '0 16 * * *'
# allows for manually running of the check
workflow_dispatch:
jobs:
check_cran_status:
runs-on: ubuntu-latest
steps:
- name: Get CRAN checks
uses: flrsh-dev/cran-checks/check-pkg@main
with:
pkg: YOUR-PKG-NAME
Each morning at 15:00 UTC (08:00 PST), CRAN checks by package page is downloaded and processed into json.
The json is served on GitHub pages so that it can be accessed as a pseudo-API.
The workflow flrsh-dev/cran-checks/check-pkg
fetches the json and identifies if there are any WARN
or ERROR
statuses. If so, the action fails. Alternatively, if the package is not on CRAN it will also fail.
MIT / Apache 2.0