@@ -21,14 +21,15 @@ The below instructions assume that you already have Wine installed.
2121## Install R for MS Windows 10
2222
2323To install R for MS Windows in Wine, first configure Wine to use
24- Windows 10 ;
24+ Windows 11 ;
2525
2626``` sh
27- $ winecfg
27+ $ winecfg /v win11
28+ $ winecfg /v
29+ win11
2830```
2931
30- In the GUI, set 'Windows version' to 'Windows 10'. Then, install [ R for
31- Windows] in Wine, by:
32+ Then, install [ R for Windows] in Wine, by:
3233
3334``` sh
3435$ wget https://cran.r-project.org/bin/windows/base/R-4.5.2-win.exe
@@ -57,6 +58,7 @@ cl <- makeClusterPSOCK(
5758 rscript = c(
5859 # # Silence Wine warnings
5960 " WINEDEBUG=fixme-all" ,
61+ " LC_ALL=en_US.UTF-8" ,
6062 # # Don't pass LC_* and R_LIBS* environments from host to Wine
6163 sprintf(" %s=" , grep(" ^(LC_|R_LIBS)" , names(Sys.getenv()), value = TRUE )),
6264 " wine" ,
@@ -69,4 +71,25 @@ print(cl)
6971```
7072
7173
74+ # Appendix
75+
76+ It might be that Wine produces warnings like:
77+
78+ ``` plain
79+ 0128:fixme:font:find_matching_face Untranslated charset 255
80+ ```
81+
82+ and R for Windows produces a warning on:
83+
84+ ``` plain
85+ During startup - Warning message:
86+ Using locale code page other than 65001 ("UTF-8") may cause problems.
87+ ```
88+
89+ These are typically harmless. Environment variable setting
90+ ` WINEDEBUG=fixme-all ` should take care of the first one, and
91+ ` LC_ALL=en_US.UTF-8 ` the second one.
92+
93+
7294[ R for Windows ] : https://cran.r-project.org/bin/windows/base/
95+ [ Winetricks ] : https://github.com/Winetricks/winetricks
0 commit comments