Closed DavidPatShuiFong closed 3 years ago
The problem might be due to improperly setup locales, and/or the locale of installed packages not matching the local locale. Solution to a similar problem described in https://github.com/rstudio/shiny/issues/2933
(I was getting the error force(expr) : input string '�' cannot be translated to UTF-8, is it valid in 'ANSI_X3.4-1968'?
when trying to use recordTest
)
to fix
install.packages("shiny", type="source")
and for good measure, add to .Renviron
LC_COLLATE = "en_US.UTF-8"
LC_CTYPE = "en_US.UTF-8"
LC_MONETARY = "en_US.UTF-8"
LC_NUMERIC = "en_US.UTF-8"
LC_TIME = "en_US.UTF-8"
I'm afraid I am not very helpful, but this is an error message I'm seeing on
shinytest
1.4.0running the debugger I see the following relevant calls
sd_getDbugLog(self, private, match.arg(type, several.ok = TRUE)
thenmake_shiny_console_log
is defined as ...when
err
is being defined,filter_log_text
is called ...and the
str
when the error message happens starts as ...The problem is in line 5 and 6, if I 'manually' remove those lines during the debug (e.g. with
str <- str[-c(5,6)]
) then the function works normally.I'm afraid I don't know where the
force
came from, it is not a function I am calling explicitly.