Trouble with Opening RStudio

RStudio cannot open R

R Session Startup Failure Report

RStudio Version

RStudio 2024.04.2+764 "Chocolate Cosmos " (e4392fc9, 2024-06-05) for macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2024.04.2+764 Chrome/120.0.6099.291 Electron/28.3.1 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

MISSING VALUE

MISSING VALUE

When installing Rstudio to desktop the .local/share and .local/share/rstudio are not created so cannot delete the config files. Rstudio has trouble opening R. R console works correctly. macOS