mirror of
https://github.com/msberends/AMR.git
synced 2025-07-08 13:21:50 +02:00
fixes
This commit is contained in:
2
R/mo.R
2
R/mo.R
@ -852,7 +852,7 @@ trimws2 <- function(x) {
|
||||
}
|
||||
|
||||
parse_and_convert <- function(x) {
|
||||
if (tryCatch(is.character(x) && Encoding(x) == "unknown", error = function(e) FALSE)) {
|
||||
if (tryCatch(is.character(x) && all(Encoding(x) == "unknown", na.rm = TRUE), error = function(e) FALSE)) {
|
||||
return(x)
|
||||
}
|
||||
tryCatch(
|
||||
|
Reference in New Issue
Block a user