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()

Try the rnpn package in your browser

Any scripts or data that you put into this service are public.

rnpn documentation built on April 3, 2025, 5:54 p.m.