Starting R studio after installation on MacOS

Error Information: Just get an error screen and then R studio closes.

Description of issue -
Using R script: /Library/Frameworks/R.framework/Versions/3.5/Resources/bin/R

Attempting to launch R session...

R_HOME=/Library/Frameworks/R.framework/Resources

R_DOC_DIR=/Library/Frameworks/R.framework/Resources/doc

R_INCLUDE_DIR=/Library/Frameworks/R.framework/Resources/include

R_SHARE_DIR=/Library/Frameworks/R.framework/Resources/share

PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

HOME=/Users/DrAndrewMorris

26 Mar 2019 13:47:52 [rdesktop] ERROR system error 13 (Permission denied) [path=/Users/DrAndrewMorris/.rstudio-desktop, target-dir=]; OCCURRED AT: rstudio::core::Error rstudio::core::FilePath::createDirectory(const std::string &) const /Users/rstudio/rstudio/src/cpp/core/FilePath.cpp:846; LOGGED FROM: rstudio::core::FilePath rstudio::core::system::userSettingsPath(const rstudio::core::FilePath &, const std::string &) /Users/rstudio/rstudio/src/cpp/core/system/PosixSystem.cpp:486

Attempted steps taken to fix - None ... don't even know where to start

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:
  • Output your diagnostics report (if possible):

From RStudio Desktop Will Not Start on support.rstudio.com

My bad. Latest R and R studio desktop version. MacOS Sierra 10.12.6

It appears RStudio doesn't have permissions to create the .rstudio-desktop folder in your home directory. You could try something like:

sudo chown $(whoami) /Users/$(whoami)

You might also want to confirm permissions on your home folder with:

stat -l /Users/$(whoami)

Thank you. I have done this. It appears to have worked.

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.