From simon.urbanek at r-project.org  Wed Dec  5 04:47:36 2012
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 4 Dec 2012 22:47:36 -0500
Subject: [Rd] RInside, rcpp   compilation problem
In-Reply-To: <BAY173-W1722F51AFF63B3074FBE9A6460@phx.gbl>
References: <BAY173-W1722F51AFF63B3074FBE9A6460@phx.gbl>
Message-ID: <8A587F96-3B47-4C3A-AEE5-9CBBB52C915C@r-project.org>


On Dec 4, 2012, at 10:00 PM, Jeff Goode wrote:

> I have spent some hours browsing the RInside and rcpp documentation, lots of it; but ... as a programmer of C++ since 1990, on both Windows and Unix ... ( Solaris and Ubuntu, and Mandrake/Mandrivo Linux); I see a minor problem ......  Where is the rcpp.h header file??  

In the Rcpp package which RInside links to. Please use rcpp-devel mailing list for such questions (as per request of the authors).

Cheers,
Simon


> The below code fails to compile as the RInside.h header file references the rcpp.h header file, which is not included with RInclude download. This is the sample code provided in one of the RInside manuals: 
> #include <iostream> 
> 
> #include <RInside.h>                            // for the embedded R via RInside
> rcpp::NumericMatrix createMatrix(const int n) {
>    Rcpp::NumericMatrix M(n,n);
>    for (int i=0; i<n; i++) {
>        for (int j=0; j<n; j++) {
>            M(i,j) = i*10 + j; 
>        }
>    }
>    return(M);
> } 		 	   		  
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
> 
> 



[Rd] RInside, rcpp compilation problem
Simon Urbanek