Dear all,
I am trying to install R and RStudio IDE under my Users/UserName folder in a Windows Server 2019 environment. Other people are using both of them (likely older versions) in their personal accounts with no problem.
After installing up-to-date R and RStudio, I encounter this error report when I launch RStudio:
R Session Startup Failure Report
RStudio Version
RStudio 2024.12.1+563 "Kousa Dogwood " (27771613, 2025-02-02) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.12.1+563 Chrome/126.0.6478.234 Electron/31.7.7 Safari/537.36
Error message
[No error available]
Process Output
The R session exited with code 1.
Error output:
[No errors emitted]
Standard output:
[No output emitted]
Logs
C:/Users/UserName/AppData/Local/RStudio/log/rsession-Woncheol.log
2025-03-12T00:01:52.534907Z [rsession-UserName] ERROR system error 5 (Access is denied) [path: C:/Users/Administrator]; OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::FilePath::makeCurrentPath(bool) const src/cpp/shared_core/FilePath.cpp:1422; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\SessionMain.cpp:2392
2025-03-12T00:10:41.673308Z [rsession-UserName] ERROR system error 5 (Access is denied) [path: C:/Users/Administrator]; OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::FilePath::makeCurrentPath(bool) const src/cpp/shared_core/FilePath.cpp:1422; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\SessionMain.cpp:2392
2025-03-12T00:10:41.673308Z [rsession-UserName] ERROR system error 5 (Access is denied) [path: C:/Users/Administrator]; OCCURRED AT class rstudio::core::Error __cdecl rstudio::core::FilePath::makeCurrentPath(bool) const src/cpp/shared_core/FilePath.cpp:1422; LOGGED FROM: int __cdecl main(int,char *const []) C:\Users\jenkins\workspace\ide-os-windows\rel-kousa-dogwood\src\cpp\session\SessionMain.cpp:2392
It seems like RStudio is trying to access private User folder of Administrator for some reason, even though ideally it should never attempt such behavior.
I think the RStudio installation binary is somehow configured to consider itself as an administrator application, regardless of which user is actually installing it. This hypothesis is further supported because uninstalling RStudio requires administrator password, while base R doesn't.
I can install/use/uninstall base R gui with no problem in this environment.
However, I have no idea how to trick it to recognize the correct user permission and to prevent it looking for administrator location.
Could you help me find a solution to this problem?