Skip to content

Commit 6fab57e

Browse files
committed
bug fixed
1 parent 7c7168f commit 6fab57e

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: yulab.utils
22
Title: Supporting Functions for Packages Maintained by 'YuLab-SMU'
3-
Version: 0.1.7
3+
Version: 0.1.7.001
44
Authors@R: c(person("Guangchuang", "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6485-8781")))
55
Description: Miscellaneous functions commonly used by 'YuLab-SMU'.
66
Imports:

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# yulab.utils 0.1.7.001
2+
3+
+ bug fixed in `pkg_ref()` (2024-08-26, Mon)
4+
15
# yulab.utils 0.1.7
26

37
+ `has_internet()` for testing internet connection (2024-08-26, Mon)

R/yulab-msg.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pkg_ref <- function(pkgname) {
9393

9494
ref <- refs[pkgname]
9595

96-
if (is.null(ref)) return(NULL)
96+
if (is.null(ref) || is.na(ref)) return(NULL)
9797

9898
msg <- "Please cite:\n\n"
9999
str_wrap(paste0(msg, refs, "\n"))

0 commit comments

Comments
 (0)