[Rd] long path names (more than 260 chars) not working under Windows OS, longPathAware missing in exe manifests?

Roman Hille H_R_O @end|ng |rom gmx@de
Tue Feb 14 12:11:33 CET 2023


Can you help please?

All file und dir funktions and also basename() do not work in R under Windows OS
if the path is longer than 260 characters.
The problem seems to be, that the manifest for all R executables do not have the longPathAware switch in the manifest.
(The registry and or the group policy for the long path name support are enabled)

This is the correct extension for the manifest of the executables.
<ws2:longPathAware>true</ws2:longPathAware>

Is it possible to add this into all manifests for windows executables?
Or is ther an other opportunity?

Snippet from Microsoft:

<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>

Roman



More information about the R-devel mailing list