Skip to content

Commit d6353fe

Browse files
authored
tweak env verbose output (#6928)
1 parent 017fad8 commit d6353fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/data.table.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ replace_dot_alias = function(e) {
174174
stopf("When by and keyby are both provided, keyby must be TRUE or FALSE")
175175
}
176176
if (missing(by)) { missingby=TRUE; by=bysub=NULL } # possible when env is used, PR#4304
177-
else if (verbose && !is.null(env)) catf("Argument '%s' after substitute: %s\n", "by", paste(deparse(bysub, width.cutoff=500L), collapse=" "))
177+
else if (verbose && !is.null(env)) catf("Argument '%s' after substitute: %s\n", "by", paste(deparse(bysub, width.cutoff=500L), collapse="\n"))
178178
}
179179
bynull = !missingby && is.null(by) #3530
180180
byjoin = !is.null(by) && is.symbol(bysub) && bysub==".EACHI"
@@ -239,7 +239,7 @@ replace_dot_alias = function(e) {
239239
substitute2(.j, env),
240240
list(.j = substitute(j))
241241
))
242-
if (missing(jsub)) {j = substitute(); jsub=NULL} else if (verbose && !is.null(env)) catf("Argument '%s' after substitute: %s\n", "j", paste(deparse(jsub, width.cutoff=500L), collapse=" "))
242+
if (missing(jsub)) {j = substitute(); jsub=NULL} else if (verbose && !is.null(env)) catf("Argument '%s' after substitute: %s\n", "j", paste(deparse(jsub, width.cutoff=500L), collapse="\n"))
243243
}
244244
}
245245
if (!missing(j)) {
@@ -328,7 +328,7 @@ replace_dot_alias = function(e) {
328328
substitute2(.i, env),
329329
list(.i = substitute(i))
330330
))
331-
if (missing(isub)) {i = substitute(); isub=NULL} else if (verbose && !is.null(env)) catf("Argument '%s' after substitute: %s\n", "i", paste(deparse(isub, width.cutoff=500L), collapse=" "))
331+
if (missing(isub)) {i = substitute(); isub=NULL} else if (verbose && !is.null(env)) catf("Argument '%s' after substitute: %s\n", "i", paste(deparse(isub, width.cutoff=500L), collapse="\n"))
332332
}
333333
}
334334
if (!missing(i)) {

0 commit comments

Comments
 (0)