Dear Manuel Muñoz Márquez,

8 july 2026 18:32:07 GMT+03:00, "Manuel Muñoz Márquez"
<[email protected]> wrote:

>Dear all.
>
>When using R version 4.6.1 on certain Windows platforms where the
>username contains non-ASCII characters (such as "á"), the command:
>path.expand("~") fails with the following error:
>Error: file name conversion problem -- name too long?
>
>This occurs when the Windows OS does not define the R_USER environment
>variable. In these cases, a call to Sys.getenv("R_USER") returns an
>empty string ("").

Yes, this is a bug: https://bugs.r-project.org/show_bug.cgi?id=18949

The encoding conversion function that should be returning UTF-8 is
called too early in the process startup, so it converts the home
directory path to the wrong encoding (ANSI).

-- 
Best regards,
Ivan

______________________________________________
[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.

Reply via email to