diff --git a/README.Rmd b/README.Rmd index 18c02dbf4285669865c419727ed2575339eab3c0..3a5a9449e9cc09d926c08e38141f4d54f4167f9e 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 a2f0fd1cadd780f09437970c2052b6add590afb3..0a55a88c0deff5458f3d6f74ab5a2fbd6f10716c 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." )