[Rcpp-devel] how to compile Rcpp for beginner

Kai Sun kleinwithu at gmail.com
Wed Jan 11 18:00:04 CET 2012


Dear all,

I am new to R and Rcpp, but I am a decent C/C++ programmer in Windows.
It took me days to read and search for solution to compile Rcpp. I
just could not figure it out. Could anybody give me some hints? Any
help will be highly appreciated!

Here is my system: Ubuntu 11.10 64-bit, R 2.14.1 (compiled from source
codes with shared lib enabled) in my directory.

Under "src" directory of Rcpp, there is a "Makevars" file which
suppose to help me. Online doc says I need to do "R CMD build". But
how shall I do it? What is "R CMD"? To be honest, I have no experience
with "Makevars". From my knowledge, it is not a Makefile, maybe a part
of it.

Does anyone can kindly offer me a step by step instruction on how to
build Rcpp? I know this might be simple for most people. But it means
huge to me.

Thanks in advance.

Kai Sun


More information about the Rcpp-devel mailing list