Trouble Launching RStudio

Error Information:

Description of issue -
When I attempt to open RStudio a window pops up that simply says RStudio and when I click ok the application closes.
Attempted steps taken to fix -
Uninstalled and reinstalled.

System Information:

  • RStudio Edition: (Desktop or Server)Desktop
  • RStudio Version: 1.1.463
  • OS Version: 10.14
  • R Version: R 3.5.2 GUI 1.70 El Capitan build
  • Output your diagnostics report (if possible):
    Last login: Thu Feb 14 15:25:45 on ttys000

mkdir: /Users/jgirsky/.bash_sessions: Permission denied

touch: /Users/jgirsky/.bash_sessions/71004FF4-2FFB-4CFB-A09A-011039711951.historynew: No such file or directory

dhcp-gs-3614:~ jgirsky$ /Applications/RStudio.app/Contents/MacOS/RStudio --run-diagnostics

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/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin:/usr/texbin

HOME=/Users/jgirsky

14 Feb 2019 21:21:45 [rdesktop] ERROR system error 13 (Permission denied) [path=/Users/jgirsky/.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

14 Feb 2019 21:21:55 [rdesktop] ERROR system error 60 (Operation timed out); OCCURRED AT: rstudio::core::Error rstudio::core::waitWithTimeout(const boost::function<WaitResult ()> &, int, int, int) /Users/rstudio/rstudio/src/cpp/core/WaitUtils.cpp:63; LOGGED FROM: -[AppDelegate applicationDidFinishLaunching:] /Users/rstudio/rstudio/src/cpp/desktop-mac/AppDelegate.mm:365

14 Feb 2019 21:21:55 [rdesktop] ERROR system error 13 (Permission denied) [path=/Users/jgirsky/.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

14 Feb 2019 21:21:57 [rdesktop] ERROR system error 13 (Permission denied) [path=/Users/jgirsky/.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

dhcp-gs-3614:~ jgirsky$

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

For some reason, RStudio is not able to access its state folder at ~/.rstudio-desktop. Try running:

sudo chown -R "$(whoami)" ~/.rstudio-desktop

This is what I get:
chown: /Users/jgirsky/.rstudio-desktop: No such file or directory

Strange. I wonder why RStudio is unable to create this folder in your home directory? Is there anything unique about how your user account is configured, or what permissions applications are given to create files in your home directory?

I don't believe so. When I go to system preferences, I definitely have it marked that R CAN control my computer. But is there anywhere else I should look to figure out if somehow something is configured oddly?

What is the output of:

stat -l $HOME

in your terminal? Is your home folder owned by your user account? Are you able to create files normally in your home directory?

Apparently my user account did not have permission, so I just fixed that and now it works. Thanks!

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.