Skip to content

Commit 006b4e8

Browse files
author
ripley
committed
elevate reporting data with "bytes" encoding to a warning
git-svn-id: https://svn.r-project.org/R/trunk@87269 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 913401d commit 006b4e8

File tree

1 file changed

+9
-3
lines changed
  • src/library/tools/R

1 file changed

+9
-3
lines changed

src/library/tools/R/QC.R

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4984,12 +4984,18 @@ function(x, ...)
49844984
"Note: found %d marked UTF-8 string",
49854985
"Note: found %d marked UTF-8 strings"), n)
49864986
},
4987-
if((n <- x$bytes) && !suppress_notes) {
4987+
if(n <- x$bytes) { ## elevated to a Warning in 4.5.0
49884988
sprintf(
49894989
ngettext(n,
4990-
"Note: found %d string marked as \"bytes\"",
4991-
"Note: found %d strings marked as \"bytes\""), n)
4990+
"Warning: found %d string marked as \"bytes\"",
4991+
"Warning: found %d strings marked as \"bytes\""), n)
49924992
},
4993+
## if((n <- x$bytes) && !suppress_notes) {
4994+
## sprintf(
4995+
## ngettext(n,
4996+
## "Note: found %d string marked as \"bytes\"",
4997+
## "Note: found %d strings marked as \"bytes\""), n)
4998+
## },
49934999
if(nr <- nrow(x$unknown)) {
49945000
msg <- ngettext(nr,
49955001
"Warning: found non-ASCII string",

0 commit comments

Comments
 (0)