RStudio and R will not start on Mac M1 OS X Monterey

Hi,

I am also having the same issue. I have R version 4.1.2 for aarch64-apple-darwin20 and have tried the latest stable RStudio Build (2021.09.1+372) as well as a daily build from today (11/20/2021), and for both have received the same error messages when opening RStudio. I tried the preview release too and that didn't work.

I am able to run R from my terminal and from within Rapp. I am on macOS Monterery Version 12.0.1 with a Macbook Air M1 2020 (16 GB, 1TB). To date, I have had no issues running the arm64 builds of R through the Intel-based RStudio build until I restarted my computer after various software updates. I've tried uninstalling and reinstalling both R and Rstudio, and have not found a proper solution.

Hoping someone out there knows what's going on. I have several projects I'm working on in RStudio that I only have time for on the weekends.

Maybe we need to try and install older versions of both until this gets sorted out?

The process output: " The R session process exited with code 6 ."

Full message below:

dyld[4643]: 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')), '/Users/cameron.hatcher/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/5d/z3_6_g1d6d91v4ppjkh4ldnh0000gn/T/rstudio-fallback-library-path-FzKGj1/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.1-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')), '/Users/cameron.hatcher/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/5d/z3_6_g1d6d91v4ppjkh4ldnh0000gn/T/rstudio-fallback-library-path-FzKGj1/libR.dylib' (no such file)
dyld[4643]: tried: '/Library/Frameworks/R.framework/Resources/lib/libR.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/Users/cameron.hatcher/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/5d/z3_6_g1d6d91v4ppjkh4ldnh0000gn/T/rstudio-fallback-library-path-FzKGj1/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.1-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')), '/Users/cameron.hatcher/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/lib/server/libR.dylib' (no such file), '/var/folders/5d/z3_6_g1d6d91v4ppjkh4ldnh0000gn/T/rstudio-fallback-library-path-FzKGj1/libR.dylib' (no such file)