When I open the R.exe I get the Rterm environment instead of the Rgui. This is very definitely unwanted behavior, and I would like to restore the default Rgui behavior. How do I set things right?
My first thought was to simply reboot the computer -- no help. Then I looked on the web. One suggestion was to delete R and reinstall it. I did that, but no change. Another suggestion was to edit the profile, but my .Rprofile file is empty. I also saw a suggestion about editing environmental variables and deleting anything involving R, but I could not find anything relating to R.
In case it's relevant, the problem started when I accidentally tried to run reprex() in the Rgui instead of Rstudio. It gave me an unpleasant error message and closed the R session. But it left a Rterm window open. I closed that window separately.
I am having no problems with Rstudio, but sometimes I prefer to run a session in the Rgui.
Any help would be much appreciated.
FYI I am pasting the session info. This session was run in base R, not Rstudio.
R version 4.4.3 (2025-02-28 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/Los_Angeles
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.3
When I open the R.exe I get the Rterm environment instead of the Rgui. This is very definitely unwanted behavior, and I would like to restore the default Rgui behavior. How do I set things right?
My first thought was to simply reboot the computer -- no help. Then I looked on the web. One suggestion was to delete R and reinstall it. I did that, but no change. Another suggestion was to edit the profile, but my .Rprofile file is empty. I also saw a suggestion about editing environmental variables and deleting anything involving R, but I could not find anything relating to R.
In case it's relevant, the problem started when I accidentally tried to run reprex() in the Rgui instead of Rstudio. It gave me an unpleasant error message and closed the R session. But it left a Rterm window open. I closed that window separately.
I am having no problems with Rstudio, but sometimes I prefer to run a session in the Rgui.
Any help would be much appreciated.
FYI I am pasting the session info. This session was run in base R, not Rstudio.
R version 4.4.3 (2025-02-28 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.utf8
[2] LC_CTYPE=English_United States.utf8
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.utf8
time zone: America/Los_Angeles
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.3
The fix is to run Rgui.exe rather than R.exe; both are in the same place in the program files. I don't know why I never had that issue before, but this seems to be the needed fix. Thanks to PRubin for posting this answer in the Posit Community site.