Skip to content

Commit

Permalink
add package citation (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
LewisAJones authored Dec 1, 2023
1 parent b2cc0e6 commit 4d49f13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@ importFrom(stats,setNames)
importFrom(utils,browseURL)
importFrom(utils,menu)
importFrom(utils,packageDescription)
importFrom(utils,packageVersion)
5 changes: 4 additions & 1 deletion R/get_attribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#' `TRUE`, a text paragraph with the contributor name, year of contribution,
#' and license type is returned.
#' @importFrom knitr combine_words
#' @importFrom utils packageVersion
#' @export
#' @examples
#' # Get valid uuid
Expand Down Expand Up @@ -125,7 +126,9 @@ get_attribution <- function(uuid = NULL, img = NULL, text = FALSE) {
}
if (text) {
att <- paste0("Organism silhouettes are from PhyloPic ",
"(https://www.phylopic.org/; T. Michael Keesey, 2023). ",
"(https://www.phylopic.org/; T. Michael Keesey, 2023) ",
"and were added using the rphylopic R package ver. ",
packageVersion("rphylopic"), " (Gearty & Jones, 2023). ",
att)
return(message(att))
}
Expand Down

0 comments on commit 4d49f13

Please sign in to comment.