# RStudio Not Starting on Sierra

#1

### Error Information:

Description of issue - When I try to start RStudio on my mac (OS Sierra) it goes to "Not Responding" and I have to force quit.

Attempted steps taken to fix - I tried deleting R and R Studio and re-downloading the newest versions, I deleted the .rstudio-desktop folder and all startup files I could find, I don't have a firewall, and when I put "Sys.which("R")" into my Terminal it said "-bash: syntax error near unexpected token "R"' ". I did the first-aid on Disk Utility and restarted my computer. I've tried to read through each ticket about this issue but none of those fixes seem to be working for me. I've used RStudio for years and have never had an issue and can't think of anything that's changed on my computer to prevent it.

#### System Information:

- RStudio Edition: Desktop
- RStudio Version: 1.1.456
- OS Version: Sierra
- R Version: R 3.5.1
- Output your diagnostics report (if possible):
Diagnostics report:

[1] "1.1.456"

$R [1] "/usr/local/bin/R"$pdflatex
[1] ""

$bibtex [1] ""$gcc
[1] "/usr/bin/gcc"

$git [1] "/usr/bin/git"$svn
[1] "/usr/bin/svn"

R version 3.5.1 (2018-07-02)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Sierra 10.12.6

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.5.1 tools_3.5.1

SysInfo:
sysname
"Darwin"
release
"16.7.0"
version
"Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64"
nodename
"Brittanys-MacBook-Pro.local"
machine
"x86_64"
"brittanysawrey"
user
"brittanysawrey"
effective_user
"brittanysawrey"

R Version:
_
platform       x86_64-apple-darwin15.6.0
arch           x86_64
os             darwin15.6.0
system         x86_64, darwin15.6.0
status
major          3
minor          5.1
year           2018
month          07
day            02
svn rev        74947
language       R
version.string R version 3.5.1 (2018-07-02)
nickname       Feather Spray
$_ [1] "/Applications/RStudio.app/Contents/MacOS/RStudio"$__CF_USER_TEXT_ENCODING
[1] "0x1F5:0x0:0x0"

$Apple_PubSub_Socket_Render [1] "/private/tmp/com.apple.launchd.K4ZbEkrzuY/Render"$CLICOLOR_FORCE
[1] "1"

$DYLD_FALLBACK_LIBRARY_PATH [1] "/Library/Frameworks/R.framework/Resources/lib:/Users/brittanysawrey/lib:/usr/local/lib:/usr/lib:::/lib:/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server"$EDITOR
[1] "vi"

$GIT_ASKPASS [1] "rpostback-askpass"$HOME
[1] "/Users/brittanysawrey"

$LANG [1] "en_US.UTF-8"$LC_CTYPE
[1] "en_US.UTF-8"

$LN_S [1] "ln -s"$LOGNAME
[1] "brittanysawrey"

$MAKE [1] "make"$PAGER
[1] "/usr/bin/less"

$PATH [1] "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"$PWD
[1] "/Users/brittanysawrey"

$R_BROWSER [1] "/usr/bin/open"$R_BZIPCMD
[1] "/usr/bin/bzip2"

$R_DOC_DIR [1] "/Library/Frameworks/R.framework/Resources/doc"$R_GZIPCMD
[1] "/usr/bin/gzip"

$R_HOME [1] "/Library/Frameworks/R.framework/Resources"$R_INCLUDE_DIR
[1] "/Library/Frameworks/R.framework/Resources/include"

$R_LIBS_SITE [1] ""$R_LIBS_USER
[1] "~/Library/R/3.5/library"

$R_PAPERSIZE [1] "a4"$R_PDFVIEWER
[1] "/usr/bin/open"

$R_PLATFORM [1] "x86_64-apple-darwin15.6.0"$R_PRINTCMD
[1] "lpr"

$R_QPDF [1] "/Library/Frameworks/R.framework/Resources/bin/qpdf"$R_RD4PDF
[1] "times,inconsolata,hyper"

$R_SESSION_TMPDIR [1] "/var/folders/9x/c6p8xh5970ddw41mzmspyg6m0000gn/T//Rtmpy9J5tE"$R_SHARE_DIR
[1] "/Library/Frameworks/R.framework/Resources/share"

$R_SYSTEM_ABI [1] "osx,gcc,gxx,gfortran,?"$R_TEXI2DVICMD
[1] "/usr/local/bin/texi2dvi"

$R_UNZIPCMD [1] "/usr/bin/unzip"$R_ZIPCMD
[1] "/usr/bin/zip"

$RMARKDOWN_MATHJAX_PATH [1] "/Applications/RStudio.app/Contents/Resources/resources/mathjax-26"$RS_RPOSTBACK_PATH
[1] "/Applications/RStudio.app/Contents/MacOS/rpostback"

$RS_SHARED_SECRET [1] "a12fafce-d040-4555-aab9-94313fece5e6"$RSTUDIO
[1] "1"

$RSTUDIO_CONSOLE_COLOR [1] "256"$RSTUDIO_CONSOLE_WIDTH
[1] "80"

$RSTUDIO_PANDOC [1] "/Applications/RStudio.app/Contents/MacOS/pandoc"$RSTUDIO_SESSION_PORT
[1] "22750"

$RSTUDIO_USER_IDENTITY [1] "brittanysawrey"$RSTUDIO_WINUTILS
[1] "bin/winutils"

$SED [1] "/usr/bin/sed"$SHELL
[1] "/bin/bash"

$SHLVL [1] "1"$SSH_ASKPASS

$SSH_AUTH_SOCK [1] "/private/tmp/com.apple.launchd.4oysVpWssP/Listeners"$TAR
[1] "/usr/bin/tar"

$TERM [1] "xterm-256color"$TERM_PROGRAM
[1] "Apple_Terminal"

$TERM_PROGRAM_VERSION [1] "388.1.1"$TERM_SESSION_ID
[1] "2BF4FB20-AF76-4C1D-B9FD-843C559D05DA"

$TMPDIR [1] "/var/folders/9x/c6p8xh5970ddw41mzmspyg6m0000gn/T/"$USER
[1] "brittanysawrey"

$XPC_FLAGS [1] "0x0"$XPC_SERVICE_NAME
[1] "0"

[1] ".GlobalEnv"        "tools:rstudio"     "package:stats"
[4] "package:graphics"  "package:grDevices" "package:utils"
[10] "package:base"
Log file: rdesktop.log


#2

Sorry to hear you're having trouble! I don't think I can directly help much, but to clear up one minor point:

Sys.which() is an R function, so Terminal doesn't know what to do with it, hence the bash error message. The "RStudio Desktop Will Not Start" support page could stand to be clearer about this, but when it says "Open a standard console session (RGui, R.app, Terminal, etc)" it means open an R session outside of RStudio. You can do this on MacOS by opening R.app, or by opening Terminal and entering: R` at the prompt. Anyway, not a big deal since the diagnostic output you included contains the same information!

Two questions which might come up while troubleshooting this issue:

• Can you confirm that R runs outside of RStudio (e.g. by launching R.app or running R in Terminal, as described above)?
• Do you have the same problem if you install the current preview release of RStudio?

#3

Thank you so much for this response! Your explanation of Sys.which() makes perfect sense, thanks for clarifying. Yes, R runs outside of RStudio just fine, and I just downloaded the preview release and that is working! Can I just use that, or does that lead us closer to finding the issue?

Thank you!

Brittany

#4

If 1.2 is working for you, you can definitely just chalk this up to and get back to work!

The fact that it works suggests that whatever was wrong may have already been fixed on the RStudio end (on purpose, or as a side effect of other improvements). Can you identify any changes you made to your system that coincided with the problem appearing? (off the top of my head: R version update? OS update? Other software installation? Change in network environment?) It's OK if not! Since you've got a working (newer and shinier) version of RStudio now, there may not be much benefit to further troubleshooting, especially if the problem is something really system-specific and rare.