From fc8b2347b6d16509c1969ec0136c11c4dcf84efd Mon Sep 17 00:00:00 2001 From: Jason Fisher <jfisher@usgs.gov> Date: Wed, 7 Feb 2024 10:59:24 -0800 Subject: [PATCH] tidy citation --- README.Rmd | 7 ++++--- inst/CITATION | 7 +++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.Rmd b/README.Rmd index 18c02db..3a5a944 100644 --- a/README.Rmd +++ b/README.Rmd @@ -104,11 +104,12 @@ The Idaho National Laboratory Project Office of the USGS supports the developmen Additional metadata about this publication, not found in other parts of the page is in this table. ```{r "details", echo=FALSE, results="asis"} +cite <- utils::citation(package = "webmap") x <- c( "Publication type" = "Formal R language package", - "DOI" = "10.5066/P9CPB1WD", - "Year published" = "2023", - "Version" = "1.0.0", + "DOI" = cite[[1]]$doi, + "Year published" = cite[[1]]$year, + "Version" = cite[[1]]$version, "IPDS" = "IP-155090" ) x <- sprintf(" <tr><th scope='row'>%s</th><td>%s</td></tr>", names(x), x) diff --git a/inst/CITATION b/inst/CITATION index a2f0fd1..0a55a88 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -3,14 +3,13 @@ utils::citHeader(sprintf("To cite %s in publications, please use:", meta[["Packa utils::citEntry( entry = "TechReport", title = "webmap---Interactive web maps using The National Map (TNM) services", + address = "Reston, Va.", author = utils::as.person("Jason C. Fisher"), institution = "U.S. Geological Survey", type = "Software Release", year = "2023", - note = sprintf("R package version %s", meta[["Version"]]), - address = "Reston, Va.", + note = "R package", + version = "1.0.0", doi = "10.5066/P9CPB1WD", - url = "https://doi.org/10.5066/P9CPB1WD", - key = "webmap-package", textVersion = "Fisher, J.C., 2023, webmap---Interactive web maps using The National Map (TNM) services: U.S. Geological Survey software release, R package, Reston, Va., https://doi.org/10.5066/P9CPB1WD." ) -- GitLab