Re: path.expand fails on some windows platform
Manuel Muñoz Márquez <[email protected]> Wed, 08 Jul 2026 23:52:42 +0200
| Newsgroups | gmane.comp.lang.r.general |
|---|---|
| Message-ID | <[email protected]> |
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 acco=
unts (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 =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\\Explor=
er\\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\\Progr=
ams"
$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\\Progr=
ams\\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=3DSpanish_Spain.utf8 LC_CTYPE=3DSpanish_Spain.utf8 LC_MO=
NETARY=3DSpanish_Spain.utf8 LC_NUMERIC=3DC =
[5] LC_TIME=3DSpanish_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=3DSpanish_Spain.utf8;LC_CTYPE=3DSpanish_Spain.utf8;LC_MONET=
ARY=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-guid=
e.html
> > and provide commented, minimal, self-contained, reproducible code.
> > =