Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Jul 26, 2024
1 parent 391cf67 commit 359accd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: yulab.utils
Title: Supporting Functions for Packages Maintained by 'YuLab-SMU'
Version: 0.1.5
Version: 0.1.5.001
Authors@R: c(person("Guangchuang", "Yu", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6485-8781")))
Description: Miscellaneous functions commonly used by 'YuLab-SMU'.
Imports:
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# yulab.utils 0.1.5.001

+ prototype of `bib_ggtree()` (2024-07-26, Fri)

# yulab.utils 0.1.5

+ `yulab_msg()` for startup message of packages developed by YuLab (2024-07-26, Fri)
Expand Down
20 changes: 20 additions & 0 deletions R/yulab-bib.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
bib_ggtree <- function(id) {
bib <- list(
book = bibentry(
bibtype = "book",
title = "Data Integration, Manipulation and Visualization of Phylogenetic Treess",
author = person("Guangchuang", "Yu"),
publisher = "Chapman and Hall/{CRC}",
year = "2022",
edition = "1st edition",
doi = "10.1201/9781003279242",
url = "https://www.amazon.com/Integration-Manipulation-Visualization-Phylogenetic-Computational-ebook/dp/B0B5NLZR1Z/",
textVersion = ref_ggtree()['ggtreeBook']
)
)

if (id %in% names(bib)) return(NULL)

bib[[id]]
}

2 changes: 2 additions & 0 deletions R/yulab-msg.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,5 @@ ref_ggtree <- function() {

return(refs)
}


0 comments on commit 359accd

Please sign in to comment.