-
-
Save mbostock/5bf494c4629b6b9f0d05 to your computer and use it in GitHub Desktop.
R: command not found
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# My experience trying to run a 7-line R script. | |
$ make | |
R --no-save --slave < r-work/sketch.R | |
/bin/sh: R: command not found | |
make: *** [public/_assets/smoothed.csv] Error 127 | |
$ brew install R | |
Error: No available formula for r | |
$ google R | |
http://www.r-project.org/ | |
$ download http://cran.cnr.berkeley.edu/bin/macosx/ | |
Please wait… | |
$ make | |
R --no-save --slave < r-work/sketch.R | |
Error in library(caTools) : there is no package called ‘caTools’ | |
Execution halted | |
make: *** [public/_assets/smoothed.csv] Error 1 | |
$ R | |
> install.packages('caTools') | |
--- Please select a CRAN mirror for use in this session --- | |
Error: XQuartz is not installed | |
$ google XQuartz | |
http://xquartz.macosforge.org/landing/ | |
$ download http://xquartz.macosforge.org/downloads/SL/XQuartz-2.7.7.dmg | |
Please wait… | |
$ R | |
> install.packages('caTools') | |
--- Please select a CRAN mirror for use in this session --- | |
Please wait for X11 to start… | |
Error: XQuartz is out of date | |
Error: An error occurred during installation | |
Error: X11 has quit unexpectedly | |
The downloaded binary packages are in | |
/var/folders/9p/jxyzkmv93mxcfrbg6h0d12000000gn/T//Rtmp5dwLDx/downloaded_packages | |
$ make | |
R --no-save --slave < r-work/sketch.R | |
$ rejoice |
You have to brew tap homebrew/science
first.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an R recipe for Homebrew, but it's
r
, notR
.Edit:
R
seems also to work.