Am trying to install the R Rcpp package on Mac OS X El Capitan with a homebrew installation of R in an R console
Installing package into ‘/usr/local/lib/R/3.3/site-library’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r- project.org/src/contrib/Rcpp_0.12.5.tar.gz'
Content type 'application/x-gzip' length 2397088 bytes (2.3 MB)
downloaded 2.3 MB
* installing *source* package ‘Rcpp’ ...
** package ‘Rcpp’ successfully unpacked and MD5 sums checked
clang++ -I/usr/local/Cellar/r/3.3.1/R.framework/Resources/include - DNDEBUG -I/usr/local/include -I/usr/local/opt/ - I/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/../include - I/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/jre/../i nclude/darwin -I/usr/local/opt/gettext/include -I/usr/local/opt/readline/include -I/usr/local/opt/openssl/include -I/usr/local/include -fPIC -g -O2 -c Date.cpp -o Date.o
Date.cpp:31:10: fatal error: 'Rcpp.h' file not found
1 error generated.
make: *** [Date.o] Error 1
ERROR: compilation failed for package ‘Rcpp’
* removing ‘/usr/local/lib/R/3.3/site-library/Rcpp’
The downloaded source packages are in
In install.packages("Rcpp") :
installation of package ‘Rcpp’ had non-zero exit status
brew update; brew install Rcpp
Error: No available formula with the name "rcpp"
==> Searching for similarly named formulae... Error: No similarly named formulae found.
==> Searching taps... Error: No formulae found in taps.
R version 3.3.1 (2016-06-21)
Platform: x86_64-apple-darwin15.5.0 (64-bit)
Running under: OS X 10.11.5 (El Capitan)
attached base packages:
 stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
First, uninstall any previous dependencies via:
brew uninstall r
Next, try to install R under the following
# Grab xquartz brew install cask brew cask install xquartz # Install R w/ GCC (compiled under) brew tap homebrew/science brew install gcc brew install r