I cannot open my R studio and I have install the latest version

Description of issue -

Error Starting R

The R session failed to start.

ERROR MESSAGE

[No error available]

PROCESS OUTPUT

The R session process exited with code 6.

ERRORS

dyld[12293]: 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')), '/Users/anlyxu/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache), '/libR.dylib' (no such file), '/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.0.1+12/Contents/Home/lib/server/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.2-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.2-arm64/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.2-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/anlyxu/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache), '/libR.dylib' (no such file), '/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.0.1+12/Contents/Home/lib/server/libR.dylib' (no such file) dyld[12293]: 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')), '/Users/anlyxu/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache), '/libR.dylib' (no such file), '/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.0.1+12/Contents/Home/lib/server/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.2-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.2-arm64/Resources/lib/libR.dylib' (no such file), '/Library/Frameworks/R.framework/Versions/4.2-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/anlyxu/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file, not in dyld cache), '/libR.dylib' (no such file), '/libR.dylib' (no such file), '/lib/libR.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk-17.0.1+12/Contents/Home/lib/server/libR.dylib' (no such file)

OUTPUT

[No output emitted]

RECENT LOG

/Users/anlyxu/.local/share/rstudio/log/rsession-anlyxu.1.log 2023-02-20T00:43:50.101738Z [rsession-anlyxu] ERROR system error 2 (No such file or directory) [path: /Users/anlyxu/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/8d39a1afc64c86e3d27ffc2e8d2e20ca/Message/MessageTemp/4d1c8719d86e6f99c65146ad9d5bf600/File/Econometrics II HW1.Rmd]; OCCURRED AT rstudio::core::Error rstudio::core::FilePath::openForWrite(std::shared_ptr<std::ostream> &, bool) const src/cpp/shared_core/FilePath.cpp:1541; LOGGED FROM: rstudio::core::Error rstudio::core::(anonymous namespace)::openFileForWritingWithRetry(const rstudio::core::FilePath &, bool, int, std::shared_ptr<std::ostream> *) src/cpp/core/FileSerializer.cpp:73 2023-02-20T22:18:33.479436Z [rsession-anlyxu] ERROR CLIENT EXCEPTION (rsession-anlyxu): (TypeError) : Cannot read properties of null (reading 'start');|||org/rstudio/studio/client/workbench/views/source/editors/text/ace/Range.java#37::toOrientedRange|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java#1907::getRangeBounds|||org/rstudio/core/client/widget/MiniPopupPanel.java#63::positionNearRange|||org/rstudio/studio/client/common/mathjax/MathJax.java#565::onMathJaxTypesetComplete|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#42::onMathJaxTypesetComplete|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#87::onMathJaxTypesetCompleted|||rstudio-0.js#-1::eval|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Push|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Typeset|||rstudio-0.js#-1::eval|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Push|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Queue|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#56::typesetNative|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#39::onExecute|||org/rstudio/core/client/SerializedCommandQueue.java#71::executeNextCommand|||org/rstudio/core/client/SerializedCommandQueue.java#83::lambda$0|||org/rstudio/core/client/SerializedCommandQueue.java#83::execute|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#42::onMathJaxTypesetComplete|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#87::onMathJaxTypesetCompleted|||rstudio-0.js#-1::eval|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::call|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::call|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Execute|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::loadComplete|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::call|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36 2023-02-20T22:18:33.479436Z [rsession-anlyxu] ERROR CLIENT EXCEPTION (rsession-anlyxu): (TypeError) : Cannot read properties of null (reading 'start');|||org/rstudio/studio/client/workbench/views/source/editors/text/ace/Range.java#37::toOrientedRange|||org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java#1907::getRangeBounds|||org/rstudio/core/client/widget/MiniPopupPanel.java#63::positionNearRange|||org/rstudio/studio/client/common/mathjax/MathJax.java#565::onMathJaxTypesetComplete|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#42::onMathJaxTypesetComplete|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#87::onMathJaxTypesetCompleted|||rstudio-0.js#-1::eval|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Push|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Typeset|||rstudio-0.js#-1::eval|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Push|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Queue|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#56::typesetNative|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#39::onExecute|||org/rstudio/core/client/SerializedCommandQueue.java#71::executeNextCommand|||org/rstudio/core/client/SerializedCommandQueue.java#83::lambda$0|||org/rstudio/core/client/SerializedCommandQueue.java#83::execute|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#42::onMathJaxTypesetComplete|||org/rstudio/studio/client/common/mathjax/MathJaxTypeset.java#87::onMathJaxTypesetCompleted|||rstudio-0.js#-1::eval|||com/google/gwt/core/client/impl/Impl.java#306::apply|||com/google/gwt/core/client/impl/Impl.java#345::entry0|||rstudio-0.js#-1::eval|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::call|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::call|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Execute|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::loadComplete|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::Process|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::call|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::WAITEXECUTE|||com/google/gwt/layout/client/Layout.java#155::width|||http://127.0.0.1:23355/mathjax/MathJax.js?config=TeX-MML-AM_CHTML#-1::execute|||com/google/gwt/layout/client/Layout.java#155::width|||Client-ID: 33e600bb-c1b1-46bf-b562-ab5cba070b0e|||User-Agent: Mozilla/5.0 (Macintosh Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36

NEXT STEPS

R can fail to start up for many reasons. The following may help you resolve the problem:

  • Investigate any errors above.
  • Make sure that R starts up correctly outside RStudio (using RGui, R.app, or R in a terminal).
  • Fully uninstall all versions of R from your machine, and reinstall the version you wish to use with RStudio.
  • Remove startup customizations such as an .Rprofile file, if present.

Further troubleshooting help can be found on our website:

Troubleshooting RStudio Startup

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:
  • sessionInfo():

Referred here from support.rstudio.com



This indicates that you have installed the wrong version of R -- make sure you get the right version for your machine's processor architecture. In particular it looks like you installed R for Apple Silicon but have an Intel mac. Try the Intel download of R here and let us know if it resolves the issue!

https://cran.r-project.org/bin/macosx/

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.