I have a test that is failing on windows on gh-actions, but passing on windows locally and all other platforms.
I have created a minimal rep example in this repo and you can see the failing action here.
The test does the following:
- imports a dataframe from an excel file, the data contains non-ascii characters and looks like this:
V1
Test
Tešt
čšž
- uses the function
codes
to recode the variable:
codes <- function(x){
switch(x,
"Test" = 1,
"Te\u0161t" = 2,
"\u010d\u0161\u017e" = 3,
stop(paste0("nope, isn't working for", x)))
}
with the error " Caused by error in
codes(): nope, isn't working forc��
(sorry, there's a missing space there). So it is failing on the third row, but I don't know hot to debug this any further.
NB: I have to use the unicode codes because R CMD check won't allow non-ascii characters in the package.