I am not sure if this is the best place for this, but I really hope someone can help me in the right direction to solve this. I have a problem with the display of unicode characters '≥' and '≤' in the output: R changes these characters to a '=' sign. I happens under windows but not under linux.
I came across this problem after reading an excel file with readxl::readr(), but the following minimal reproducible example gives the same error:
a <- data.frame(x= "≥",y="≤") a
R version 4.0.2 (2020-06-22) (EDIT: same happens after updating to R 4.0.3)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Rstudio version 1.4.1087
Same happens on a different computer with the same R version (4.0.2) but with a different locale:
But it does not happen on a Linux server with an older R version:
R version 3.6.0 (2019-04-26)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Cloud Infrastructure
In the last Linux environment I get the expected result, but I also need it to work on my personal computer.
Is this because of the R version? Or because the locale is not set properly? Or it just does not work under windows? Any help is appreciated!