Rstudio encountered a Fatal Error on startup - r

I recently upgraded R to 3.4.3 and RStudio to 1.1.383. After installation I got the <p> R encountered a fatal error.</p>The session was terminated bug.
I've followed the instructions here on fixing startup problems, this similar question on stack overflow, and other RStudio support forums and none have been able to fix the error.
My R version is running fine in the terminal and is the most recent version
When I remove the ".rstudio-desktop", ".Rpofile", and ".Rhistory" files and start Rstudio it no longer uses my themes but now encounters a "Fatal Session" bug but when I restart my session it just keeps getting the bug.
I've restarted my computer and re-installed Rstudio with no luck with anything.
I've included a diagnostic report here; there are a decent number of errors but I'm not sure what they really mean.
Any help would be greatly appreciated.

I was able to fix this by deleting the R and Rstudio apps, the R frameworks, and the rstudio-desktop folder and reinstalling both apps.

Related

R studio Javascript Alert R encountered a fatal error

Issue description
When opening R studio, after about 10 seconds, I get a popup alert:
Javascript Alert-http://127.0.0.1:40055/
R encountered a fatal error.
The session was terminated.
If I click the OK button on the alert I get another alert:
Javascript Alert-http://127.0.0.1:40055/
null
After clicking OK again, I get the error in the console:
Error: Unable to establish connection with R session
I cannot run anything (it just has the flashing cursor permanently). I cannot click any options (e.g. if I click Tools -> Global options, then the drop down closes without doing anything).
What I have tried
Restarting my computer.
Reinstalling R and R studio.
Removing the project and history files associated with the project.
Uninstalling all my packages (I presume unnecessary but I was getting desperate).
Moving the config file mv ~/.config/RStudio ~/backup-RStudio (from https://support.rstudio.com/hc/en-us/articles/200534577-Resetting-RStudio-Desktop-s-State). I also tried moving .rstudio-desktop, but that didn't exist.
Possibly useful information
The error first started after I tried to compile and run C code in R. I think I made an infinite loop, either way it crashed R and I xkilled it. R still runs fine from the terminal.
Versions
R version 3.6.3 (2020-02-29)
rstudio version 1.4.1103
Ubuntu 20.04.2 LTS
Any help would be much appreciated!
I had a very similar error message:
Javascript Alert: R encountered a fatal error. The session was
terminated.
For me this error occurred after changing from the 64-bit to 32-bit versions of R. I tried:
restarting my machine
uninstalling/reinstalling Rstudio
installing an older version of Rstudio which has been more stable in the past
None of these worked for me, but when I deleted my ".Rhistory" file in my home directory the error message disappeared and I'm now able to run my scripts again.
Additional info:
I'm using Windows 10, Rstudio Desktop 1.4.1717 and R4.1.0 (32 and 64 bit versions)
Update: Rstudio showed the same error message again, but resetting the RStudio Desktop's state helped.

the code execution cannot proceed because kpathsea631.dll was not found

I failed to compile a R Markdown file and the error message is "The code execution cannot proceed because kpathsea631.dll was not found".
I updated the Visual C++ Redistributable and reinstalled R, Rstudio and MiKTeX. All of these methods failed. Could any help me with this?
I am using Win10 system.
I got the same error message using TinyTex instead of MiKTex. Like you, I also deinstalled very much and installed it again but I think basically it is already sufficient to reinstall TinyTex (as long as the error message stems from pdflatex.exe).
So, remove.packages("tinytex"), go to the folder C:/Users/username/AppData/Roaming/TinyTex and make sure you delete/deinstall it as well.
When installing tinytex again, make sure you follow the steps explained here: https://yihui.org/tinytex/

Fatal error: unable to initialize JIT - R 3.5.1 and RStudio 1.4463

I recently decided to upgrade both R and RStudio on my PC, 64-bit version.
First, I uninstalled the previous versions, RStudio 1.4462 and R 3.4.4, and then I installed R 3.5.1 and RStudio 1.4463, in the order here mentioned.
The installation goes just fine, but when I try to open R from the desktop shortcut I receive an error message saying:
Fatal error - unable to initialize JIT
The same thing happens with RStudio.
I click OK on the message (it's the only thing I can do) and R closes immediately, same for RStudio.
What could cause this issue? I looked around the internet but I couldn't find anything useful.
Not sure the cause of the JIT error, but in case anyone stumbles upon this thread later, I was able to overcome this issue by reinstalling the same version of R (4.1.0 in my case) on my machine, overwriting the old version. Doing so seemed to maintain all my previously installed packages too. Now R & Rstudio works fine on start-up. Give it a try!

Multiple users of RStudio on virtual machine gives fatal error

We use an installation of RStudio on a virtual machine, accessible by multiple users. With version 0.98.501 this was no problem. Lately we installed version 0.99.447 and now RStudio gives an error as soon as somenone tries to open RStudio as a second user. Also we changed R version from 3.1.1 to 3.2.1, but this doesn't seem to cause the problem because opening of R without RStudio by multiple users is still possible.
This is the error:
Has anyone an idea what's going wrong here? Many thanks in advance!
EDIT The dutch error message says something like: "the path to the storage place(?) is invalid".
This was a known issue with RStudio 0.99, and was fixed in build 0.99.451. The latest build (0.99.465) has the fix; you can get it here:
https://www.rstudio.com/products/rstudio/download/

R package "repmis" crashes R on library(repmis)

I tried installing a list of packages this morning and had an error which crashed R when I ran library(repmis)
install.packages("repmis")
library(repmis)
I've uninstalled & reinstalled R (on my mac by deleting the app and downloading the new build), but still get an app crash when I run library(repmis).
Can anyone tell me why? And/or how I can more effectively uninstall R to get this package to work again?
Problem solved, I restarted the computer and repeated the procedure above and this time received a prompt to install a Java 6 runtime.
I'm guessing that the dialogue box had issues displaying earlier because of some system printer windows I had open.

Resources