inst/release-tasks.R

library(cffr)
library(codemeta)

#run this after running usethis::use_version()

#update inst/CITATION (for better results from `citation("rnpn")`)
#run these in order to prevent cff_create() from reading inst/CITATION and including it as a `preferred-citation`
unlink("inst/CITATION")
cff <- cff_create(keys = list(`date-released` = Sys.Date()), dependencies = FALSE)
cff_write(cff)
cff_write_citation(cff, file = "inst/CITATION")

#update codemeta.json
write_codemeta()
ropensci/rnpn documentation built on April 5, 2025, 5:12 a.m.