Reputation: 647
when starting R I get the following error-message:
Fatal Error: Unexpected exception: The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate.
The problem is caused by a script, that is loaded when starting up RStudio. If I rename the RStudio-Desktop folder RStudio does start up without any problems.
Is there any way to stop R loading this one special file which causes the problem without having to remove/rename/hide the RStudio-Desktop folder as a whole?
For those who are interested: The buggy-script was created by copying a very long string of chars (a bit over 1.000.000 characters) from a texteditor-file to the RStudio script. RStudio terminated immediately after pressing Ctrl+V.
Upvotes: 1
Views: 461
Reputation: 1
These commands help me to resolve similar problems also (for Ubuntu 16.04.6 LTS), renaming the source folder in rstudio-desktop Directory:
cd ~/.rstudio-desktop/
mv sources/ ./sources-backUp
Upvotes: 0
Reputation: 4053
Renaming (deleting) the sources
folder in the RStudio-Desktop Directory solved the problem for me:
~/.rstudio-desktop/sources/
If you are not using Ubuntu, you can find the location of your RStudio-Desktop Directory here: https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State
Upvotes: 0