在安装后尝试在Mac上打开RStudio时看到此错误:
Unexpected exception: Escape sequence was neither a valid property nor a valid character class name. The error occurred while parsing the regular expression fragment: 'LUDE=C:\py>>>HERE>>>thon27\inc'.
从日志中:
ERROR R SUICIDE: Unexpected exception: Escape sequence was neither a valid property nor a valid character class name. The error occurred while parsing the regular expression fragment: 'LUDE=C:\py>>>HERE>>>thon27\inc'.; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023
如何解决该问题?
RStudio安装程序版本为1.1.463。我也看到了与1.1.453相同的问题。我在Mac OS Sierra(版本10.12.6)中。
答案 0 :(得分:2)
我在$ cat /etc/paths
中有一些错误的路径。删除它们,RStudio可以正常工作。