Here are some tips on getting R development working with Yosemite. Contribute what you know below and I'll add it in.
I went ahead and re-installed all of my homebrew
. You can find out what you have installed with
brew leaves
so you can make a note of what you want to re-install. You can then uninstall with this script.
@ateucher suggests (in the comments) that one moves the whole /usr/local/
per "Option 1" on this page.
Seems like some of the libraries installed by XQuartz get hammered during installation. You need to download the package and re-install. XQuartz homepage.
(From Peter Dalgaard in R-SIG-Mac)
By default, my plot device was set to be X11 (which looks pretty horrible). Adding the following line to my .Rprofile
got me back to Quartz device plotting:
options(device="quartz")
Why is happens is explained by Simon Urbanek in this R-SIG-Mac post.
Seems to get hammered too, so need to download (the GIANT installer) again... http://tug.org/mactex/. If you haven't installed Yosemite yet, there are some tips on "avoiding the problem" (plus other tips).
Building a PDF in RStudio gives the following error:
pandoc: pdflatex not found. pdflatex is needed for pdf output.
Error: pandoc document conversion failed with error 41
Execution halted
No TeX installation detected (TeX is required to create PDF output). You should install a recommended TeX distribution for your platform:
Windows: MiKTeX (Complete) - http://miktex.org/2.9/setup
(NOTE: Be sure to download the Complete rather than Basic installation)
Mac OS X: TexLive 2013 (Full) - http://tug.org/mactex/
(NOTE: Download with Safari rather than Chrome _strongly_ recommended)
Linux: Use system package manager
This Stack Overflow thread gives some (short term) solutions.
The recommendation being that you run RStudio from the command line
$ open /Applications/RStudio.app
and that this will ensure that the PATH
environment variable is correctly forwarded to RStudio, so it will find LaTeX.
As @hadley points out in the comments, "R 3.1.2 or latest RStudio should fix any path problems."
R 3.1.2 or latest RStudio should fix any path problems.