Skip to content

(PR#13195) Can't open files containing russian letters in path

1 message · Alexey Ivanov

#
Thanks for the attention.
So my windows locale is Russian (Cyrillic, Win-1251). I installed
R-2.8.0-win32.exe. I've got a
file with Cyrillic letters in its name, for example "C:\???.txt".
When I try to open it from R
menu "File->Source R code ..." it produces an error:
Error in file(file, "r", encoding = encoding) :
  cannot open the connection
In addition: Warning message:
In file(file, "r", encoding = encoding) :
  cannot open file 'C:\666.txt': No such file or directory

the Cyrillic letters "???" in this case are somehow replaced with
"666"
Prof Brian Ripley wrote:
details
R, and
open files