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

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.

enter image description here



Solution 1:[1]

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.

Solution 2:[2]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Paul
Solution 2 hao zhou