Skip to content

Commit 2b5eb39

Browse files
Strip references from CITATION.cff (env-independent lean form)
cffr generates the references section from locally-installed packages, which differs between dev machine (full deps installed) and CI runner (cffr only). Caused unnecessary churn between fat and lean CFFs. Fix per soul/skills/citation-cff (commit 8bf61fe): use cffr::cff_create() + null out references + cff_write(). Workflow Rscript matches local skill — both produce the same lean CFF deterministically. CITATION.cff goes from 155 lines to 28 lines, focused on the package's own metadata. R dep info already lives in DESCRIPTION's Imports/Suggests where it belongs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 29c364d commit 2b5eb39

2 files changed

Lines changed: 1 addition & 128 deletions

File tree

.github/workflows/update-citation-cff.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
packages: cffr
2626

2727
- name: Update CITATION.cff
28-
run: Rscript -e 'cffr::cff_write()'
28+
run: Rscript -e 'x <- cffr::cff_create(); x$references <- NULL; cffr::cff_write(x = x)'
2929

3030
- name: Commit if changed
3131
run: |

CITATION.cff

Lines changed: 0 additions & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -25,131 +25,4 @@ contact:
2525
given-names: Allan
2626
email: al@newgraphenvironment.com
2727
orcid: https://orcid.org/0000-0002-3495-2128
28-
references:
29-
- type: software
30-
title: 'R: A Language and Environment for Statistical Computing'
31-
notes: Depends
32-
url: https://www.R-project.org/
33-
authors:
34-
- name: R Core Team
35-
institution:
36-
name: 'R Foundation for Statistical Computing (ROR: <https://ror.org/05qewa988>)'
37-
address: Vienna, Austria
38-
year: '2026'
39-
doi: 10.32614/R.manuals
40-
version: '>= 4.1'
41-
- type: software
42-
title: cli
43-
abstract: 'cli: Helpers for Developing Command Line Interfaces'
44-
notes: Imports
45-
url: https://cli.r-lib.org
46-
repository: https://CRAN.R-project.org/package=cli
47-
authors:
48-
- family-names: Csárdi
49-
given-names: Gábor
50-
email: gabor@posit.co
51-
year: '2026'
52-
doi: 10.32614/CRAN.package.cli
53-
- type: software
54-
title: rappdirs
55-
abstract: 'rappdirs: Application Directories: Determine Where to Save Data, Caches,
56-
and Logs'
57-
notes: Imports
58-
url: https://rappdirs.r-lib.org
59-
repository: https://CRAN.R-project.org/package=rappdirs
60-
authors:
61-
- family-names: Ratnakumar
62-
given-names: Sridhar
63-
- family-names: Mick
64-
given-names: Trent
65-
- family-names: Davis
66-
given-names: Trevor
67-
orcid: https://orcid.org/0000-0001-6341-4639
68-
year: '2026'
69-
doi: 10.32614/CRAN.package.rappdirs
70-
- type: software
71-
title: rlang
72-
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
73-
notes: Imports
74-
url: https://rlang.r-lib.org
75-
repository: https://CRAN.R-project.org/package=rlang
76-
authors:
77-
- family-names: Henry
78-
given-names: Lionel
79-
email: lionel@posit.co
80-
- family-names: Wickham
81-
given-names: Hadley
82-
email: hadley@posit.co
83-
year: '2026'
84-
doi: 10.32614/CRAN.package.rlang
85-
- type: software
86-
title: knitr
87-
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
88-
notes: Suggests
89-
url: https://yihui.org/knitr/
90-
repository: https://CRAN.R-project.org/package=knitr
91-
authors:
92-
- family-names: Xie
93-
given-names: Yihui
94-
email: xie@yihui.name
95-
orcid: https://orcid.org/0000-0003-0645-5666
96-
year: '2026'
97-
doi: 10.32614/CRAN.package.knitr
98-
- type: software
99-
title: rmarkdown
100-
abstract: 'rmarkdown: Dynamic Documents for R'
101-
notes: Suggests
102-
url: https://pkgs.rstudio.com/rmarkdown/
103-
repository: https://CRAN.R-project.org/package=rmarkdown
104-
authors:
105-
- family-names: Allaire
106-
given-names: JJ
107-
email: jj@posit.co
108-
- family-names: Xie
109-
given-names: Yihui
110-
email: xie@yihui.name
111-
orcid: https://orcid.org/0000-0003-0645-5666
112-
- family-names: Dervieux
113-
given-names: Christophe
114-
email: cderv@posit.co
115-
orcid: https://orcid.org/0000-0003-4474-2498
116-
- family-names: McPherson
117-
given-names: Jonathan
118-
email: jonathan@posit.co
119-
- family-names: Luraschi
120-
given-names: Javier
121-
- family-names: Ushey
122-
given-names: Kevin
123-
email: kevin@posit.co
124-
- family-names: Atkins
125-
given-names: Aron
126-
email: aron@posit.co
127-
- family-names: Wickham
128-
given-names: Hadley
129-
email: hadley@posit.co
130-
- family-names: Cheng
131-
given-names: Joe
132-
email: joe@posit.co
133-
- family-names: Chang
134-
given-names: Winston
135-
email: winston@posit.co
136-
- family-names: Iannone
137-
given-names: Richard
138-
email: rich@posit.co
139-
orcid: https://orcid.org/0000-0003-3925-190X
140-
year: '2026'
141-
doi: 10.32614/CRAN.package.rmarkdown
142-
- type: software
143-
title: testthat
144-
abstract: 'testthat: Unit Testing for R'
145-
notes: Suggests
146-
url: https://testthat.r-lib.org
147-
repository: https://CRAN.R-project.org/package=testthat
148-
authors:
149-
- family-names: Wickham
150-
given-names: Hadley
151-
email: hadley@posit.co
152-
year: '2026'
153-
doi: 10.32614/CRAN.package.testthat
154-
version: '>= 3.0.0'
15528

0 commit comments

Comments
 (0)