R 4.2.0 doesn't start in RStudio (Windows 11) - r

R 4.2.0 does not start in RStudio. Attached is the screenshot. It says, "The R session process exited with code - 1073740791" R 4.2.0 starts normally outside RStudio. Any help would be appreciated. Thank you.

Thank you, dcarlson, you solved my problem. I was using RStudio 2021.09.0 and thought it was the most up-to-date because when I clicked on Check for Update, RStudio's message was that I was using the most up-to-date one. After installing RStudio 2022.02.2, the problem disappeared.

It seems the newest version of Rstudio has some problems with R 4.2. I changed R studio to an older version, the issue disappeared.

Related

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.

Issue opening geomorph package

Currently having issue opening geomorph in R. I recently updated R to the newest version. I also updated the packages "RRPP" and "rgl" after finding a thread from 2020 (Geomorph not functioning after update) where someone also had issues opening geomorph. I also recently went ahead and updated all old packages (not just the ones based off of the thread).
Computer info: I am using macOS Catalina version 10.15.7. Can't upgrade to the newest version for space reasons, but haven't had any issues using other packages in R (or running code in MATLAB).
R Version info:
RStudio 2022.02.0+443 "Prairie Trillium"
Mostly need geomorph for a GPA (procrustes analysis), but am open to other alternatives if I can't get geomorph to run. Currently it runs a never ending loop and then R terminates.
Appreciate any thoughts on what to do next or advice if you've run into this issue!
Thanks!
-KB
Update: there is a particular version of R on macs where it wouldn't run geomorph (after they updated). They waited to fix this with the next release of R, so there is a small gap in the geomorph package in which it won't run on a specific version of R for macs. I ended up uninstalling R and re-installing the latest version. This is a mac specific issue and if others come across this, updating to the newest version of R solved my issue.

R/Rstudio stop working after loading Rcmdr package

I got this problem after installing the new version of Rstudio/R , I had R version 3.6 and Rstudio 1.2.xx and after update I got this .T hen I tried doing a clean install , and reinstalling the packages I had , the installation went fine but I got this problem. Anyone has an idea? I tried looking on the net but didn't find a solution.
Note that It's the same either for Rstudio or Rgui , I end up with either this message error or gui closes (Rgui case).
Are you on Windows? If so this is a known issue and why R 4.0.1 will be replaced by R 4.0.2 on Monday (i.e. in three days).
There should also be a R 4.0.1.patched binary at CRAN which would help you now too. You can try this page with its '4.0.2 release candidate'.

updating both Rprofile and R to the same version

Is there any idea, how I can find the version of my Rscript?
The issue is, once I am running R in mac terminal, the version is 3.2.2 but running via Rscript the version is changed to 3.0.2. I would like to know how to update my Rscript's version!
I cannot comment, because I have less than 50 rep, so I'm writing here.
Are you under macOS Sierra?
When I upgraded R to version 3.4.0 after upgrading my Mac to macOS 10.12 (Sierra) I had some problems with rJava. While I searched for a solution, I also noticed that the R version numbers displayed in the GUI and the terminal differed. I am not quite sure what that problem was, but part of my solution was to completely uninstall R (note the comments about using which R !).

System Error after installing R package

I am running R 3.2.2 on Windows 8. After installing R packages, rattle and rpart.plot in RStudio an error message propped up in a separate panel.
Rterm.exe - System Error.
The program can't start because libatk-1.0-0.dll is missing from your computer.
Try reinstalling the program to fix this problem.
Does anybody have any clue as to what this means and how to fix this?
Thank you all for your inputs. I managed to figure it out.
The problem arose as a result of missing GTK+ file. I'm not exactly sure what GTK+ really is, but I know that GTK+ is a preliminary file needed to install the Rattle Package. Here's the step I took to download the GTK+ file.
First, remove all the tabs opened in RStudio.
Use install.packages to download Rattle package. A window should pop up asking to see if you want to download GTK+. Click Yes.
Restart RStudio.
I tried closing all the tabs and installing rattle but no pop up appear for me. I then tried installing the package "RGTK2" (fyi, my R studio is version 3.2.0) and after completing this installation, the error message can be closed off.
I restarted Rstudio and the rterm.exe error didn't appear anymore.
I had this issue.
1) Close all open source code tabs
2) install.packages("RGtk2")
I didn't even need to restart R-Studio
I just wanted to add a variation of this error. The error only appeared when using RStudio and not in the RGui. I followed Daniel Lee's answer but with no luck at first, but it pointed me in the right direction. I closed RStudio and opened The R console (RGui), and decided to uninstall the rattle package first, and then reinstalled it again. I never got the pop-up asking about downloading the GTK+. It was only when I specifically tried to run rattle: rattle() that rattle complained that the it could not find the GTK+ and prompted me to download and install it. As it turned out I had already downloaded this via another source, so rattle could not install it as it was already installed and was presented with the following warning:
Warning messages:
1: Failed to load RGtk2 dynamic library, attempting to install it.
2: In dir.create(config_path, recursive = TRUE) :
'C:\Users\[me]\Documents\R\win-library\3.3\RGtk2\gtk\x64\etc\gtk-2.0' already exists
I then attempted to start rattle, which was successful. I then started up RStudio and again fire up rattle again with success, and the error libatk-1.0-0.dll is missing has now disappeared.
Current setup: R version 3.3.0, RStudio version 0.99.896
Try uninstalling the rattle package, then it will prompt to install GTK+. Install that and then cancel the uninstall of the rattle package. Quit R studio and restart it. The libtak error will disappear.
I would only get this error when running RStudio. I did close all my RStudio tabs and cleared the workspace as suggested by others. Installing rattle from RStudio would still produce the error. For me, it looks like RStudio could not install RGtk2 due to some permissions issue (i.e. Access Denied with removing the old RGtk2).
I had to manually delete rattle and RGtk2 folders from my R library folder (for me it was in my users folder My Documents\R\win-library\3.3). Then from Rgui (NOT RStudio), I did install.packages("rattle"). This also installed RGtk2 without any permissions issues. The error is now gone.
Incase if it has occured from installing the rattle package in R,Just uninstall the package using remove.packages() and restart the R session. The error dissapears :)
To answer the question:
Does anybody have any clue as to what this means ?
It happens in RStudio and is related to rattle which uses RGtk2. -
This problem is because you had order version of RGtk2 installed (likely 2.20.30), which was the highest possible version for earlier version of RStudio (likely 1.0.44 or earlier) and which is required for rattle. Now when you installed new version of RStudio (1.0.143), it is not compatible with older RGtk2 version. Once you install RGtk2 again (just from Tools menu or run install.packages("RGtk2") in RStudio) , it will overwrite the old version of RGtk2 with newest (2.20.33 version), which is now compatible with 1.0.143 version of RStudio, and this fixes the problem.

Resources