在Mac上打开RStudio时如何解决正则表达式解析错误

时间:2019-02-25 03:06:25

标签: macos rstudio

在安装后尝试在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)中。

1 个答案:

答案 0 :(得分:2)

我在$ cat /etc/paths中有一些错误的路径。删除它们,RStudio可以正常工作。