Skip to content

Commit

Permalink
Add CRAN DOI
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Jun 14, 2024
1 parent 071179a commit fd259be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ results](https://badges.cranchecks.info/worst/nominatimlite.svg)](https://cran.r
[![Project Status: Active -- The project has reached a stable, usable state and
is being actively
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![DOI](https://img.shields.io/badge/DOI-10.5281/zenodo.5113195-blue)](https://doi.org/10.5281/zenodo.5113195)
[![DOI](https://img.shields.io/badge/DOI-10.32614/CRAN.package.nominatimlite-blue)](https://doi.org/10.32614/CRAN.package.nominatimlite)
[![status](https://tinyverse.netlify.app/status/nominatimlite)](https://CRAN.R-project.org/package=nominatimlite)

<!-- badges: end -->
Expand Down
16 changes: 9 additions & 7 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
year <- format(Sys.time(), "%Y")
abs <- trimws(gsub("\\s+", " ", meta$Description))
abs <- gsub("'", "", abs)
doi <- "10.5281/zenodo.5113195"
title <- gsub("'", "", meta$Title, fixed = TRUE)
title <- gsub("Nominatim", "{Nominatim}", title, fixed = TRUE)
title <- gsub("API", "{API}", title, fixed = TRUE)
pkg <- trimws(meta$Package)
doi <- paste0("10.32614/CRAN.package.", pkg)

bibentry(
"Manual",
header = "To cite the 'nominatimlite' package in publications use:",
title = paste("{nominatimlite}:", title),
author = person("Diego", "Hernangómez"),
header = paste0("To cite '", pkg, "' in publications use:"),
title = paste0("{", pkg, "}: ", gsub("'", "", title)),
doi = doi,
author = c(person("Diego", "Hernangómez")),
year = year,
key = "R-nominatimlite",
version = meta$Version,
doi = doi,
url = unlist(strsplit(meta$URL, ","))[1],
abstract = abs
abstract = abs,
key = paste0("R-", pkg)
)

0 comments on commit fd259be

Please sign in to comment.