Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Aug 26, 2024
1 parent 7c7168f commit 6fab57e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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.7
Version: 0.1.7.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.7.001

+ bug fixed in `pkg_ref()` (2024-08-26, Mon)

# yulab.utils 0.1.7

+ `has_internet()` for testing internet connection (2024-08-26, Mon)
Expand Down
2 changes: 1 addition & 1 deletion R/yulab-msg.R
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pkg_ref <- function(pkgname) {

ref <- refs[pkgname]

if (is.null(ref)) return(NULL)
if (is.null(ref) || is.na(ref)) return(NULL)

msg <- "Please cite:\n\n"
str_wrap(paste0(msg, refs, "\n"))
Expand Down

0 comments on commit 6fab57e

Please sign in to comment.