Hello everyone,
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:
[General]
#RBinDir=C:/PROGRA~4/folder/R/R-36~1.1/bin/x64
desktop.renderingEngine=auto
view.zoomLevel=1.1
cookies=@Invalid()
[mainwindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\xff\xff\xff\xff\xff\xff\xff\xf7\0\0\a\x80\0\0\x4\x6\0\0\0\0\0\0\0y\0\0\x4\xb1\0\0\x4\x5\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x1d\0\0\a\x7f\0\0\x4\x5)
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!