[R] path.expand fails on some windows platform
Manuel Muñoz Márquez
m@nue|@munoz@m@rquez @end|ng |rom gm@||@com
Wed Jul 8 23:52:42 CEST 2026
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 <manuel.munoz.marquez using gmail.com>
> >
>
> > ______________________________________________
> > R-help using r-project.org 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.
> >
More information about the R-help
mailing list