Skip to content

Commit 3a7b7a2

Browse files
Revert "Revert "Add an extra condition for checking showProgress value (#6401…" (#6413)
This reverts commit 654fd0e.
1 parent a8b8098 commit 3a7b7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ replace_dot_alias = function(e) {
224224
if ((isTRUE(which)||is.na(which)) && !missing(j)) stopf("which==%s (meaning return row numbers) but j is also supplied. Either you need row numbers or the result of j, but only one type of result can be returned.", which)
225225
if (is.null(nomatch) && is.na(which)) stopf("which=NA with nomatch=0|NULL would always return an empty vector. Please change or remove either which or nomatch.")
226226
if (!with && missing(j)) stopf("j must be provided when with=FALSE")
227-
if (!isTRUEorFALSE(showProgress)) stopf("%s must be TRUE or FALSE", "showProgress")
227+
if (!missing(by) && !isTRUEorFALSE(showProgress)) stopf("%s must be TRUE or FALSE", "showProgress")
228228
irows = NULL # Meaning all rows. We avoid creating 1:nrow(x) for efficiency.
229229
notjoin = FALSE
230230
rightcols = leftcols = integer()

0 commit comments

Comments
 (0)