Sometimes when using RStudio I get a bunch of warnings in the console. They look like that:
Warning messages:
1: In grepl(paste("\\Q", search, "\\E", sep = ""), column, perl = TRUE, :
input string 2958 is invalid UTF-8
2: In grepl(paste("\\Q", search, "\\E", sep = ""), column, perl = TRUE, :
input string 3002 is invalid UTF-8
3: In grepl(paste("\\Q", search, "\\E", sep = ""), column, perl = TRUE, :
input string 3289 is invalid UTF-8
4: In grepl(paste("\\Q", search, "\\E", sep = ""), column, perl = TRUE, :
input string 3582 is invalid UTF-8
5: In grepl(paste("\\Q", search, "\\E", sep = ""), column, perl = TRUE, :
input string 3648 is invalid UTF-8
I realized they come from the data viewer, more precisely they occur when searching through badly encoded text data. Minimal example:
u<- rawToChar(as.raw(c(0x63, 0x61, 0x66, 0xe9)))
Encoding(u) <-"UTF-8"
View(u)
# Search anything using either the global (top-right) search or the column search.# Then type any command in the console.
These warnings are quite confusing for the user, especially because they are printed only when the next command is entered.
Would it be possible to suppress them?
The text was updated successfully, but these errors were encountered:
Sometimes when using RStudio I get a bunch of warnings in the console. They look like that:
I realized they come from the data viewer, more precisely they occur when searching through badly encoded text data. Minimal example:
These warnings are quite confusing for the user, especially because they are printed only when the next command is entered.
Would it be possible to suppress them?
The text was updated successfully, but these errors were encountered: