Skip to content
Prev 8160 / 12125 Next

[R-pkg-devel] Windows R 4.2.0 package will not load with UTF-8 encoding

On 11/06/2022 6:43 a.m., Joseph Park wrote:
One possible difference is the version of Windows 10.  The UTF8 handling 
was described in the NEWS file this way:

"R uses UTF-8 as the native encoding on recent Windows systems (at least 
Windows 10 version 1903, Windows Server 2022 or Windows Server 1903). As 
a part of this change, R uses UCRT as the C runtime. UCRT should be 
installed manually on systems older than Windows 10 or Windows Server 
2016 before installing R."

Conceivably the systems where this fails don't have the new UCRT 
runtime.  I believe running Windows Update should get it.

If it doesn't, or for users on an older Windows version, this page lets 
you download it: 
https://www.microsoft.com/en-us/download/details.aspx?id=48234 .


Duncan Murdoch