[Rcpp-devel] Specify Rcpp header location in Makevars

jsmith5889 at yahoo.com jsmith5889 at yahoo.com
Wed Jul 29 17:19:44 CEST 2015


Hi,

Is there a way to automatically specify the location of the Rcpp include
directory (for Rcpp.h) in Makevars?

In my Makevars, I use the following compile command:

%.o: %.cpp $(cpp_sources)
	$(CXX) $(PKG_CXXFLAGS) $<


I also specified "Imports: Rcpp" in DESCRIPTION, but it does not appear
to automatically add the right flags to the compile command.

I am looking for something that could work similarly to Rscript -e
"Rcpp:::LdFlags()", which used to export the Rcpp library flags.

Any ideas are greatly appreciated!

Thanks!
Lutz


More information about the Rcpp-devel mailing list