Re: path.expand fails on some windows platform

Manuel Muñoz Márquez <[email protected]> Mon, 13 Jul 2026 08:42:55 +0200
Newsgroups gmane.comp.lang.r.general
Message-ID <[email protected]>
Hi all,

I'm not a windows user and I'm not used to work with windows build tools, s=
o I cannot test the patch by myself. But if someone built R I can
test the result.

I'm waiting for the creation of a my user in bugzilla to report the bug.

Best, Manuel.

El mi=C3=A9, 08-07-2026 a las 18:06 -0400, Duncan Murdoch escribi=C3=B3:
> Windows support is going to be a little stretched for a while, since =

> Tom=C3=A1=C5=A1 Kalibera's passing.=C2=A0 If Ivan's patch doesn't fix the=
 issue you're =

> having it would be worth commenting in the bug report.=C2=A0 If you can't =

> test it, that would be worth mentioning here.
> =

> Duncan Murdoch
> =

> On 2026-07-08 5:52 p.m., Manuel Mu=C3=B1oz M=C3=A1rquez wrote:
> > Hi Gregg,
> > =

> > El mi=C3=A9, 08-07-2026 a las 17:16 +0000, Gregg Powell escribi=C3=B3:
> > > 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\CurrentVers=
ion\Explorer\User Shell Folders", "HCU") so they can see the raw
> > > path
> > > R is trying to convert
> > > =

> > =

> > About dropping the =C3=B1, (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=C3=B1oz"
> > > 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\\Ex=
plorer\\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 Short=
cuts"
> > =

> > $Personal
> > [1] "%USERPROFILE%\\Documents"
> > =

> > $PrintHood
> > [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Printer Short=
cuts"
> > =

> > $Programs
> > [1] "%USERPROFILE%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\P=
rograms"
> > =

> > $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\\P=
rograms\\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
> > =C2=A0=C2=A0 LAPACK version 3.12.1
> > =

> > locale:
> > [1] LC_COLLATE=3DSpanish_Spain.utf8=C2=A0 LC_CTYPE=3DSpanish_Spain.utf8=
=C2=A0=C2=A0=C2=A0 LC_MONETARY=3DSpanish_Spain.utf8 LC_NUMERIC=3DC
> > [5] LC_TIME=3DSpanish_Spain.utf8
> > =

> > time zone: Europe/Madrid
> > tzcode source: internal
> > =

> > attached base packages:
> > [1] stats=C2=A0=C2=A0=C2=A0=C2=A0 graphics=C2=A0 grDevices utils=C2=A0=
=C2=A0=C2=A0=C2=A0 datasets=C2=A0 methods=C2=A0=C2=A0 base
> > =

> > loaded via a namespace (and not attached):
> > [1] compiler_4.6.1
> > =

> > > Sys.getlocale()
> > [1] "LC_COLLATE=3DSpanish_Spain.utf8;LC_CTYPE=3DSpanish_Spain.utf8;LC_M=
ONETARY=3DSpanish_Spain.utf8;LC_NUMERIC=3DC;LC_TIME=3DSpanish_Spain.utf8"
> > > =

> > > > =

> > > =

> > > > --
> > > > Manuel Mu=C3=B1oz M=C3=A1rquez <[email protected]>
> > > > =

> > > =

> > > > ______________________________________________
> > > > [email protected]=C2=A0mailing 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]=C2=A0mailing 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-guid=
e.html
> > and provide commented, minimal, self-contained, reproducible code.
> =