[Rcpp-devel] Where is R.h and the other header files?

Michael Hannon jm_hannon at yahoo.com
Mon Aug 27 00:14:11 CEST 2012


> I'm trying to write C++ code and call it in R. But after installing the Rcpp
> package in R, I cannot find where the R.h and the other header file are.
> When writing code in eclipse, it's really annoying to deal with the errors
> because of the non-existance of R.h's. Is it a built-in feature of Rcpp or
> just i'm not on the right track?

On my system (Fedora 17 linux), R.h is located in /usr/include, and it comes
from a general R package, not one connected specifically to Rcpp:

    $ locate R.h
    ...
    /usr/include/R/R.h
    ...

    $ rpm -q -f /usr/include/R/R.h
    R-devel-2.15.1-1.fc17.x86_64

-- Mike


More information about the Rcpp-devel mailing list