Re: path.expand fails on some windows platform

Duncan Murdoch <[email protected]> Wed, 8 Jul 2026 18:06:49 -0400
Newsgroups gmane.comp.lang.r.general
Message-ID <[email protected]>
Windows support is going to be a little stretched for a while, since 
Tomáš Kalibera's passing.  If Ivan's patch doesn't fix the issue you're 
having it would be worth commenting in the bug report.  If you can't 
test it, that would be worth mentioning here.

Duncan Murdoch

On 2026-07-08 5:52 p.m., Manuel Muñoz Márquez wrote:
> Hi Gregg,
> 
> El mié, 08-07-2026 a las 17:16 +0000, Gregg Powell escribió:
>> Hello Manuel,
>>
>> Output of sessionInfo() and Sys.getlocale() on an affected machine
>> Whether OneDrive is redirecting the Documents folder on the affected accounts (localized folder names like "Documentos" plus OneDrive path
>> injection is the common thread in prior reports)
>> Output of utils::readRegistry("Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders", "HCU") so they can see the raw path
>> R is trying to convert
>>
> 
> About dropping the ñ, (I did understand is like a joke), I want to say I'm not a windows user but almost all of my students are, and I don't
> want this prevent them to use R.
> 
> 
> I want to notice that USERPROFILE is correctly set:
>> Sys.getenv("USERPROFILE")
> [1] "C:\\Users\\Muñoz"
>> Sys.getenv("R_USER")
> [1] ""
>> Sys.getenv("HOME")
> [1] ""
>>
> 
> At the end the more output info.
> 
> Should I include this as a bug in R's Bugzilla or is enough to put here?
> 
> Best, Manuel.
> 
> 
>> utils::readRegistry("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\User Shell Folders", "HCU")
> $`{374DE290-123F-4565-9164-39C4925E467B}`
> [1] "%USERPROFILE%\\Downloads"
> 
> $AppData
> [1] "%USERPROFILE%\\AppData\\Roaming"
> 
> $Cache
> [1] "%USERPROFILE%\\AppData\\Local\\Microsoft\\Windows\\INetCache"
> 
> $Cookies
> [1] "%USERPROFILE%\\AppData\\Local\\Microsoft\\Windows\\INetCookies"
> 
> $Desktop
> [1] "%USERPROFILE%\\Desktop"
> 
> $Favorites
> [1] "%USERPROFILE%\\Favorites"
> 
> $History
> [1] "%USERPROFILE%\\AppData\\Local\\Microsoft\\Windows\\History"
> 
> $`Local AppData`
> [1] "%USERPROFILE%\\AppData\\Local"
> 
> $`My Music`
> [1] "%USERPROFILE%\\Music"
> 
> $`My Pictures`
> [1] "%USERPROFILE%\\Pictures"
> 
> $`My Video`
> [1] "%USERPROFILE%\\Videos"
> 
> $NetHood
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Network Shortcuts"
> 
> $Personal
> [1] "%USERPROFILE%\\Documents"
> 
> $PrintHood
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Printer Shortcuts"
> 
> $Programs
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs"
> 
> $Recent
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Recent"
> 
> $SendTo
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\SendTo"
> 
> $`Start Menu`
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu"
> 
> $Startup
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"
> 
> $Templates
> [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Templates"
> 
>> sessionInfo()
> R version 4.6.1 (2026-06-24 ucrt)
> Platform: x86_64-w64-mingw32/x64
> Running under: Windows 10 x64 (build 19042)
> 
> Matrix products: default
>    LAPACK version 3.12.1
> 
> locale:
> [1] LC_COLLATE=Spanish_Spain.utf8  LC_CTYPE=Spanish_Spain.utf8    LC_MONETARY=Spanish_Spain.utf8 LC_NUMERIC=C
> [5] LC_TIME=Spanish_Spain.utf8
> 
> time zone: Europe/Madrid
> tzcode source: internal
> 
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
> 
> loaded via a namespace (and not attached):
> [1] compiler_4.6.1
> 
>> Sys.getlocale()
> [1] "LC_COLLATE=Spanish_Spain.utf8;LC_CTYPE=Spanish_Spain.utf8;LC_MONETARY=Spanish_Spain.utf8;LC_NUMERIC=C;LC_TIME=Spanish_Spain.utf8"
>>
>>>
>>
>>> --
>>> Manuel Muñoz Márquez <[email protected]>
>>>
>>
>>> ______________________________________________
>>> [email protected] mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
> 
> ______________________________________________
> [email protected] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide https://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.