So if your team prefers to maintain a central version of R (packages etc) in a Git repo like us (please don't judge - it works quite well), you may encounter the following error when loading R Studio for the first time:
The solution is to create a dummy InstallPath
variable in the system registry.
REG ADD HKEY_CURRENT_USER\SOFTWARE\R-core\R\1 /v "InstallPath" /t REG_SZ /d "C:\nonExistentLocation" /f
The next time RStudio.exe
is called, a much more useful window appears:
(can't embed a second image but you get the idea)
Hopefully Posit can remove this bug/feature one day in future.