Unable to open Rstudio on OSX

rstudio

#1

I cannot open Rstudio on my MacBook Pro (15-inch, 2018) for a long time. When I try to open Rstudio, it appears like that:

R version: 3.5.2
Rstudio version: 1.1.463, 1.1.456, 1.1.423, 1.1.383, 1.0.153 (I have tried many Rstudio versions.)
OSX version: macOS Mojave 10.14.3

Diagnostics log

Last login: Sat Feb 9 11:08:36 on ttys000

/Applications/RStudio.app/Contents/MacOS/diagnostics ; exit;

(base) wanglequndeMacBook-Pro:~ lequn$ /Applications/RStudio.app/Contents/MacOS/diagnostics ; exit;

Log file: rdesktop.log


(Empty)

Log file: rsession-lequn.log


20 Jan 2019 03:19:13 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

20 Jan 2019 03:19:13 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

20 Jan 2019 03:33:39 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

20 Jan 2019 03:33:39 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

20 Jan 2019 03:38:12 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

20 Jan 2019 03:38:12 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

22 Jan 2019 12:05:39 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

22 Jan 2019 12:05:39 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

23 Jan 2019 02:31:47 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

23 Jan 2019 02:31:47 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

25 Jan 2019 07:59:11 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

25 Jan 2019 07:59:11 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

25 Jan 2019 12:36:25 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

25 Jan 2019 12:36:25 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

27 Jan 2019 12:04:03 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

27 Jan 2019 12:04:03 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

27 Jan 2019 12:04:37 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

27 Jan 2019 12:04:37 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

27 Jan 2019 12:17:17 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/builder/rsbuild/work/src/cpp/r/session/RSession.cpp:812

27 Jan 2019 12:17:17 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/builder/rsbuild/work/src/cpp/session/SessionMain.cpp:2488

27 Jan 2019 12:17:34 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/builder/rsbuild/work/src/cpp/r/session/RSession.cpp:812

27 Jan 2019 12:17:34 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/builder/rsbuild/work/src/cpp/session/SessionMain.cpp:2488

27 Jan 2019 12:17:47 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/builder/rsbuild/work/src/cpp/r/session/RSession.cpp:812

27 Jan 2019 12:17:47 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/builder/rsbuild/work/src/cpp/session/SessionMain.cpp:2488

27 Jan 2019 12:21:01 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/builder/rsbuild/work/src/cpp/r/session/RSession.cpp:812

27 Jan 2019 12:21:01 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/builder/rsbuild/work/src/cpp/session/SessionMain.cpp:2488

27 Jan 2019 12:28:38 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/builder/rsbuild/work/src/cpp/r/session/RSession.cpp:812

27 Jan 2019 12:28:38 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/builder/rsbuild/work/src/cpp/session/SessionMain.cpp:2488

27 Jan 2019 12:31:42 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/builder/rsbuild/work/src/cpp/r/session/RSession.cpp:812

27 Jan 2019 12:31:42 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/builder/rsbuild/work/src/cpp/session/SessionMain.cpp:2488

27 Jan 2019 12:34:57 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /opt/conda/conda-bld/rstudio_1533220822756/work/src/cpp/r/session/RSession.cpp:813

27 Jan 2019 12:34:57 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void (anonymous namespace)::rSuicide(const std::string &) /opt/conda/conda-bld/rstudio_1533220822756/work/src/cpp/session/SessionMain.cpp:1023

27 Jan 2019 12:35:09 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /opt/conda/conda-bld/rstudio_1533220822756/work/src/cpp/r/session/RSession.cpp:813

27 Jan 2019 12:35:09 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void (anonymous namespace)::rSuicide(const std::string &) /opt/conda/conda-bld/rstudio_1533220822756/work/src/cpp/session/SessionMain.cpp:1023

27 Jan 2019 12:35:50 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /opt/conda/conda-bld/rstudio_1533220822756/work/src/cpp/r/session/RSession.cpp:813

27 Jan 2019 12:35:50 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void (anonymous namespace)::rSuicide(const std::string &) /opt/conda/conda-bld/rstudio_1533220822756/work/src/cpp/session/SessionMain.cpp:1023

27 Jan 2019 12:40:11 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

27 Jan 2019 12:40:11 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 02:30:03 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 02:30:03 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 02:30:27 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 02:30:27 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 02:40:04 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 02:40:04 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 02:42:01 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 02:42:01 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 02:45:36 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:756

09 Feb 2019 02:45:36 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:2179

09 Feb 2019 02:57:24 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 02:57:24 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 03:10:57 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 03:10:57 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

09 Feb 2019 03:25:37 [rsession-lequn] ERROR Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: int rstudio::r::session::RReadConsole(const char *, CONSOLE_BUFFER_CHAR *, int, int) /Users/rstudio/rstudio/src/cpp/r/session/RSession.cpp:813

09 Feb 2019 03:25:37 [rsession-lequn] ERROR R SUICIDE: Unexpected exception: Unmatched [ or [^ in character class declaration. The error occurred while parsing the regular expression fragment: 'yd; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023

logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

Deleting expired sessions...10 completed.

Could someone help me fix this problem? Thanks!


#2

just a wild guess here, but since you're having this issue in different versions, it's possibly something with the saved state. Try deleting ~/.rstudio-desktop and see what happens. You might also try removing your .Rprofile just to be safe.


#3

Thanks, but after deleting both ~/.rstudio-desktop and .Rprofile, the problem is still here when I reopen Rstudio.


#5

I have solved this problem by deleting a trouble file in /etc/paths.d to change the PATH environment.


closed #6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.