This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-09-23 15:47:31 +02:00
1 parent f8b21cdf72
commit 7c08418c0e
7 files changed
+7 -19

No files matched your search

+1 -1
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(
-1
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),