@@ -14,7 +14,7 @@ duplicated.data.table = function(x, incomparables=FALSE, fromLast=FALSE, by=seq_
1414 } else {
1515 o = forderv(x , by = query $ by , sort = FALSE , retGrp = TRUE )
1616 if (isTRUE(as.logical(attr(o , " anynotutf8" , exact = TRUE ))))
17- warningf(" Mixed encodings detected. Strings were coerced to UTF-8 before duplicated(x)." )
17+ warningf(" Mixed encodings detected. Strings were coerced to UTF-8 before duplicated(x). Use enc2utf8() to avoid this warning. " )
1818 if (attr(o , ' maxgrpn' , exact = TRUE ) == 1L ) return (rep.int(FALSE , nrow(x )))
1919 f = attr(o , " starts" , exact = TRUE )
2020 if (fromLast ) f = cumsum(uniqlengths(f , nrow(x )))
@@ -34,7 +34,7 @@ unique.data.table = function(x, incomparables=FALSE, fromLast=FALSE, by=seq_alon
3434 if (! length(by )) by = NULL # 4594
3535 o = forderv(x , by = by , sort = FALSE , retGrp = TRUE )
3636 if (isTRUE(as.logical(attr(o , " anynotutf8" , exact = TRUE )))) {
37- warningf(" Mixed encodings detected. Strings were coerced to UTF-8 before unique(x)." )
37+ warningf(" Mixed encodings detected. Strings were coerced to UTF-8 before unique(x). Use enc2utf8() to avoid this warning. " )
3838 }
3939 if (! is.null(cols )) {
4040 x = .shallow(x , c(by , cols ), retain.key = TRUE )
0 commit comments