Error Starting R, The R session failed to start - r

I have seen the message after I terminated R, as one of options proposed while I was constantly getting this message R is taking longer than usual
I am using R x 64 Version 4.1.0
RStudio 1.4.1717, "Juliet Rose" (df86b69e, 2021-05-24) for Windows
Several times, I have attempted to uninstall(and clean AppData)/ reinstall both R and Rstudio, with no improvement.

A reinstallation of RStudio should fix this.

Related

RStudio Crashes When Plotting

For some reason, R keeps getting stuck whenever I try to plot something. Neither ggplot or base R is working, and I've tried this in both RStudio and R. I do not receive an error message, but when I run code like the code below, the command just runs endlessly and I end up having to terminate the session.
x <- rnorm(100)
hist(x)
Here are the technical details:
R version 4.1.2 "Bird Hippie"
OS: macOS Monterey 12.2.1
I've tried dev.off(), which isn't really a solution to my problem. Does anyone have any clue what's going on?
I tried running the code in both R and RStudio and get the same result. R just runs endlessly with no output or error message.

R Session Aborted while loading RWeka

I cannot load RWeka library in Rstudio session while I have got it installed without problems.
The library(RWeka) command is simply interrupted by a "R Session Aborted" error and R is restarted.
I'm currently working with
Windows 10
RStudio 2022.02.2 Build 485
R 4.2.0
I have tried to load RWeka running R in a terminal and I haven't had any problem.
Any suggestion will be wellcome.
Kind Regards.
I had the same issue and I've confirmed it on Twitter. I have now found a solution: you need to install a patched version of R, available here: https://cran.r-project.org/bin/windows/base/rpatched.html. Take care to select the patched version in RStudio and then the crash should disappear.

R Session Aborted and R encountered a fatal error

I have been using Rstudio for a while and there was no problem until I was trying to install rJava and xlsx package in R. I had updated both my RGui and Rstudio to the latest version (also downloaded java x64 bit for my desktop since earlier I had a Java_Home error message trying to install both rJava and xlsx package) and I was able to install both rJava and xlsx in Rstudio, but when I use
library(xlsx)
I encountered the R session aborted message. This happen every time even when I already closed the application and tried to open it again.
I'm currently using 2022.02.2 Build 485 for my Rstudio and 4.20.0 for my RGui. Anyone knows what I can do with this?
edit: I ended up using a different package to read my excel file (read_excel) for my data which worked very well. However, I still don't know what is the problem with my 'xlsx' package
This issue has been discussed in RStudio Community
https://community.rstudio.com/t/package-xlsx-error/136288
You should install a patched version
https://cran.r-project.org/bin/windows/base/rpatched.html

R memory issues after reinstall

I have been running several R scripts without issue until one day I tried to open RStudio and it said "Fatal error: unable to open base package in R." I uninstalled and reinstalled both R and RStudio, which solved that issue. However, now when I run one of the R scripts that I had been running previously, I get a "cannot allocate vector of size" error (this is a modeling script with several models and iterations).
Additionally, when I try to load a very large dataset, I was previously able to load it with the line memory.limit(size=18000). Now, it doesn't let me set it to anything above 4000, so I cannot load the dataset. I get the error "Error in memory.limit(size=18000): don't be silly!: your machine has a 4Gb address limit"
I am currently running RStudio 2021.09.2 and R 4.1.2. Before the reinstall, I believe I was running RStudio 1.4.1106 and R 4.1.0.
Thank you.
I had a very similar issue, and it turned out that after updating RStudio, it defaulted to using the 32-bit version of R instead of the 64-bit one. Once I switched it to the 64-bit one in RStudio, the memory issue stopped.
To do this, in RStudio on Windows go to Tools > Global Options and then change the R version... drop-down to the appropriate one installed on your system.

R studio crashes when trying to use package Geneland

I have installed package Geneland (https://github.com/gilles-guillot/Geneland) using github on my MacOS BigSur v.11.2.2 , R version 4.0.4 (2021-02-15), after running it successfully in past and then deleting it.
First time, I have a huge problem with the installation, but now there was no problems with gfortran etc. that I have encountered when installing it for the first time.
Right now I am dealing with R session aborted ("R Session Aborted: R encountered a fatal error. The session was terminated.") when I try to run PostProcessChain after running the MCMC analysis. R session just crushes with no error information. So the software itself run the analysis successfully, I just cannot get any output of the results.
Is there any solution to this or at least a way to find out where is the problem?
The only difference is that I think I had older version of R before.
Thank you for your help.

Resources