当路径中有希伯来文字符时,用RStudio编译笔记本?(目前,它失败了)

当路径中有希伯来文字符时,用RStudio编译笔记本?(目前,它失败了),r,encoding,rstudio,knitr,hebrew,R,Encoding,Rstudio,Knitr,Hebrew,在RStudio中按compile notebook按钮时,出现以下错误: Error in file(con, "r") : cannot open the connection In addition: Warning message: In file(con, "r") : cannot open file 'C:/Dropbox/Teaching/TAU/2016 - b/׳׳‘׳•׳ ׳׳¡׳˜׳˜׳™׳¡׳˜׳™׳§׳” - ׳׳¡׳˜׳˜׳™׳¡׳˜׳™׳§׳׳™׳/׳×׳™׳

在RStudio中按compile notebook按钮时,出现以下错误:

Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
  cannot open file 'C:/Dropbox/Teaching/TAU/2016 - b/׳׳‘׳•׳ ׳׳¡׳˜׳˜׳™׳¡׳˜׳™׳§׳” - ׳׳¡׳˜׳˜׳™׳¡׳˜׳™׳§׳׳™׳/׳×׳™׳¨׳’׳•׳׳™׳/stat_intro_2016/intro_stat.R': No such file or directory
这是我的实际路径:

getwd()
[1] "C:/Dropbox/Teaching/TAU/2016 - b/מבוא לסטטיסטיקה - לסטטיסטיקאים/תירגולים/stat_intro_2016"
这是我的会话信息(我尝试使用:Sys.setlocale(“LC_ALL”,“希伯来语”),但没有帮助)

有什么建议可以设置这个参数吗


谢谢。

如果我用本地化字符(不是拉丁字符集)命名我的文件,我会得到同样的错误。我的区域设置(在Windows中)不知何故不支持UTF-8,我希望你的运气更好。如果你通过命令行调用它,在
normalizePath
中包装路径可能会有所帮助,但我没有足够的类似设置来尝试它。@alistaire-如果我使用命令行,我就可以正确书写字符。问题是我想让按钮工作:)您可以尝试在RStudio首选项中设置编码。要想得到更可靠的建议,也许可以问问医生。@alistaire我试过这个方法,可惜没有成功。我将尝试RStudio的支持论坛(我想确保它不是我遗漏的一件普通的小事)。谢谢
> sessionInfo()
R Under development (unstable) (2016-02-08 r70124)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=Hebrew_Israel.1255  LC_CTYPE=Hebrew_Israel.1255   
[3] LC_MONETARY=Hebrew_Israel.1255 LC_NUMERIC=C                  
[5] LC_TIME=Hebrew_Israel.1255    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] htmltools_0.3   tools_3.3.0     rmarkdown_0.9.2 digest_0.6.9   
>