I encountered a problem when trying to change the R version in RStudio on my Windows 10 Enterprise (64-bit) laptop. The PC has R 3.6.1, R 4.1.0 and R 4.2.2 installed, with R 3.6.1 being recognised as the default and which it successfully starts up. I tried to change the version through “Tools > Global Options > Change” but the pop up does not show up (GUI unresponsive). Alternatively, using “ctrl” during the startup prompts an “R Not Installed” error. I wiped everything and reinstalled all versions of R and RStudio and the issue remained. Similar issues in the past were associated with the "desktop.ini.lock" file located at C:\Users\myaccount\AppData\Roaming\RStudio which currently contains:
Deleting "desktop.ini.lock" prompts the “R Not Installed” error but I found a workaround by changing RBinDir to “RBinDir=C:/PROGRA~4/folder/R/R-41~1.0/bin/x64”. This allows Rstudio to start with R 4.1.0. However, just adding the RBinDir for R 4.1.0 as a new line will result in loading the default R 3.6.1
I don’t understand this behavior and would be grateful for advice on how to fix this. Thank you!