These are the logs and the errors I am getting when I try to start Rstudio
Rdesktop log
2021-11-23T19:57:51.860045Z [rdesktop] ERROR Main window closed unexpectedly; LOGGED FROM: auto __cdecl rstudio:
:MainWindow::closeEvent::<lambda_6df4003a5993ea0cdb87988cf8be933c>::operator ()(class QVariant) const src/cpp/desktop/DesktopMainWindow.cpp:524
2021-11-23T20:02:16.725598Z [rdesktop] ERROR Main window closed unexpectedly; LOGGED FROM: auto __cdecl rstudio:
:MainWindow::closeEvent::<lambda_6df4003a5993ea0cdb87988cf8be933c>::operator ()(class QVariant) const src/cpp/desktop/DesktopMainWindow.cpp:524
R-session mypc log
2021-11-23T19:57:44.742719Z [rsession-Marks PC] ERROR Unable to retrieve user home path. HRESULT: -2147024893; LOGGED FROM: class rstudio::core::FilePath __cdecl rstudio::core::system::userSettingsPath(const class rstudio::core::FilePath &,const class std::basic_string<char,struct std::char_traits,class std::allocator > &,bool) src/cpp/core/system/Win32System.cpp:338