R and RStudio incompatibility with Yosemite Mac OS X 10.10

October 23, 2014
By

(This article was first published on Computational Mathematics » R, and kindly contributed to R-bloggers)

There is currently a bug (or feature?) in the current version of Yosemite (OS X 10.10) that messes with the passing of environmental variables to programs launched from Finder (as pointed out by Adam Maxwell).

Notably, this means that PATH variables are not passed properly to R.app or RStudio.app. You may end up seeing errors such as the following:

Error in system("pdflatex", intern = TRUE) : error in running command
sh: pdflatex: command not found

Error in system("convert", intern = TRUE) : error in running command
sh: convert: command not found

Until Apple releases a fix to this, the easy workaround is to launch the desired application from the command-line (terminal).

For example to launch R, you can instead run

/Applications/R.app/Contents/MacOS/R

And for RStudio, you can run

/Applications/RStudio.app/Contents/MacOS/RStudio

Let’s hope Apple releases a fix soon.

 

UPDATE from RStudio: 

We’ve fixed this on our end in the latest version of RStudio for OS X, available here: http://www.rstudio.com/products/rstudio/download/

Give it a try and let us know if it works for you.

To leave a comment for the author, please follow the link and comment on their blog: Computational Mathematics » R.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)