Skip to content

Commit 9a10944

Browse files
committed
Fix warnings emmited by log_call_location
1 parent da9484f commit 9a10944

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: logger
33
Title: A Lightweight, Modern and Flexible Logging Utility
4-
Version: 0.4.1.9001
4+
Version: 0.4.1.9002
55
Date: 2025-10-29
66
Authors@R: c(
77
person("Gergely", "Daróczi", , "daroczig@rapporter.net", role = c("aut", "cre"),

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
New features and quality of life improvements:
44

55
* Added `appender_ntfy()` to use {ntfy} as an appender (#240, @jonocarroll)
6+
* `normalizePath()` in the `log_call_location()` no longer triggers warning
7+
if the package source does not exist (#241, @maksymiuks)
68

79
# logger 0.4.1 (2025-09-08)
810

R/utils.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ log_call_location <- function(.logcall) {
6161
loc$line <- ref[1L]
6262
file <- attr(ref, "srcfile")
6363
if (!is.null(file)) {
64-
loc$path <- normalizePath(file$filename, winslash = "/")
64+
loc$path <- normalizePath(file$filename, winslash = "/", mustWork = FALSE)
6565
}
6666
break
6767
}

0 commit comments

Comments
 (0)