Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
GuangchuangYu committed Jan 29, 2025
1 parent a65cf88 commit 596393b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Package: yulab.utils
Title: Supporting Functions for Packages Maintained by 'YuLab-SMU'
Version: 0.1.9.001
Version: 0.2.0
Authors@R: c(person("Guangchuang", "Yu", email = "guangchuangyu@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-6485-8781")))
Description: Miscellaneous functions commonly used by 'YuLab-SMU'.
Depends:
R (>= 4.2.0)
Imports:
cli,
digest,
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yulab.utils 0.1.9.001
# yulab.utils 0.2.0

+ bug fixed in `get_caller_package()` (2025-01-08, Wed)

Expand Down
3 changes: 2 additions & 1 deletion R/utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

get_caller_package <- function(caller) {
if (is.character(caller)) {
fn <- eval(parse(text=caller))
fn <- tryCatch(eval(parse(text=caller)), error=function(e) NULL)
if (is.null(fn)) return("")
} else {
fn <- caller
}
Expand Down

0 comments on commit 596393b

Please sign in to comment.