We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
expect_file_unchanged_
1 parent 6c40b18 commit 22d01a9Copy full SHA for 22d01a9
R/expect-known.R
@@ -82,7 +82,8 @@ expect_file_unchanged_ <- function(
82
lines,
83
...,
84
update = TRUE,
85
- info = NULL
+ info = NULL,
86
+ trace_env = caller_env()
87
) {
88
if (!file.exists(path)) {
89
cli::cli_warn("Creating reference output.")
@@ -115,7 +116,7 @@ expect_file_unchanged_ <- function(
115
116
encodeString(path, quote = "'"),
117
paste0(comp, collapse = "\n\n")
118
)
- fail(msg, info = info, trace_env = caller_env())
119
+ fail(msg, info = info, trace_env = trace_env)
120
} else {
121
pass()
122
}
0 commit comments