Issue:
I've installed RStudio (Version 2023.09.1+494) on my Mac. However, I got Error Starting R by clicking on the RStudio icon in the Applications folder. Strangely, if I use the DMG file, it opens without any issues, but this is not a convenient way to use the software.
System information:
- RStudio version 2023.09.1+494
- R version 4.3.1 (2023-06-16)
- Platform: aarch64-apple-darwin20 (64-bit)
- Running under: macOS Ventura 13.4
- Chip: Apple M2
Attempted steps taken to fix:
- Uninstalled and reinstalled R and RStudio from https://posit.co/download/rstudio-desktop/.
- Tried this solution "move the application and define a symbolic link" but it didn't fix.
Got error:
mv: rename rsession to rsession-x86: No such file or directory
Thank you in advance for your help!
Problem report when launching RStudio:
R Session Startup Failure Report
RStudio Version
RStudio 2023.09.1+494 "Desert Sunflower " (cd7011dc, 2023-10-16) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.09.1+494 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36
Error message
[No error available]
Process Output
The R session exited with code 1.
Error output:
dyld[60221]: terminating because inserted dylib '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' could not be loaded: tried: '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/3_/r484z5y91zq43lgq9prly55w0000gn/T/rstudio-fallback-library-path-1348011923/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/3_/r484z5y91zq43lgq9prly55w0000gn/T/rstudio-fallback-library-path-1348011923/libR.dylib' (no such file)
dyld[60221]: tried: '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/3_/r484z5y91zq43lgq9prly55w0000gn/T/rstudio-fallback-library-path-1348011923/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Library/Java/JavaVirtualMachines/jdk-11.0.18+10/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/3_/r484z5y91zq43lgq9prly55w0000gn/T/rstudio-fallback-library-path-1348011923/libR.dylib' (no such file)
Standard output:
[No output emitted]