← Back to all sparks
C

cffr

ANALYTICS
Velocity0.0

Generate Citation File Format (cff) Metadata for R Packages

cffr keeps CITATION.cff generation in step with the standard and its R sources.

citation-metadatar-packagesschema-validationopen-sciencetooling
Current state
The package generates and validates CITATION.cff files from R package metadata. Recent work is validation and parsing accuracy rather than new outputs: cff_validate() moved onto the ajv engine through jsonvalidate for clearer errors, ROR identifiers act as a website fallback for people and entities, and DOIs are now detected in inst/CITATION url fields including dx.doi.org forms.
Where it's heading
The package tracks two moving targets — the Citation File Format schema and R's own person and citation handling, which has broken extraction twice in recent releases. Between those, releases pick up ecosystem details: Codeberg recognised as a repository host, CRAN-to-SPDX licence mappings refreshed, GitHub Action defaults changed to save quota. The most recent release is an internal refactor carried out with AI assistance, with no user-facing change.
Prediction
With validation migrated and the R 4.5 person changes absorbed, the next release most likely follows a Citation File Format schema update rather than adding capability.

Recent moves

  1. 1mo ago

    Internal refactor and test hardening

    An internal refactor of code, documentation and tests carried out with AI assistance, aimed at maintainability and reducing test dependence on external services. Nothing changes for users of the package.

    View source ↗
  2. 3mo ago

    Validation moves to ajv; ROR and DOI detection improve

    cff_validate() migrates to the ajv engine via jsonvalidate for more informative errors, ROR identifiers become a website fallback for people and entities, and DOI detection covers dx.doi.org URLs in inst/CITATION. The accuracy work that the current release cycle is built around.

    View source ↗
  3. 5mo ago

    R 4.1 minimum and Quarto vignettes

    Raises the minimum R version to 4.1.0 and migrates the vignettes to Quarto. No change to generated output.

    View source ↗
  4. 7mo ago

    Action defaults and person-comment parsing

    Runs the cff_gha_update() action on ubuntu-latest by default to save Actions quota, improves comment parsing in the as_cff_person() family, and refreshes CRAN-to-SPDX licence mappings.

    View source ↗
  5. 1y ago

    cff_write() can now generate inst/CITATION too

    Adds an r_citation parameter to cff_write() that generates or updates inst/CITATION from the CITATION.cff content, and recognises Codeberg as a repository host. It makes the package the single source for both citation files rather than just the CFF one.

    View source ↗
  6. 1y ago

    ORCID extraction adapted to R person changes

    Adapts ORCID extraction to changes in R's person handling. Upstream compatibility only.

    View source ↗