1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 13:21:50 +02:00
This commit is contained in:
2022-09-23 15:47:31 +02:00
parent f8b21cdf72
commit 7c08418c0e
7 changed files with 7 additions and 19 deletions

2
R/mo.R
View File

@ -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(

View File

@ -25,7 +25,6 @@
# set up package environment, used by numerous AMR functions
pkg_env <- new.env(hash = FALSE)
pkg_env$mo_failed <- character(0)
pkg_env$mo_uncertainties <- data.frame(
uncertainty = integer(0),
input = character(0),