I'm again trying to define instances of the wrap template for C++
classes that have data members defined in Rcpp.h
A stand-alone example, which is rather lengthy, is enclosed. In this
example I am unsuccessful in using the "intrusive" formulation
described in the "Extending Rcpp" vignette. I wil
On looking more closely I can't use cxxfunction with plugin="Rcpp" to
test this because the plugin inserts
#include
before the user includes and some parts in the user includes need to
be declared before Rcpp.h is included. I'll create a small package.
On Tue, Dec 7, 2010 at 10:06 AM, Douglas
Yes. One cheap way to deal with this is:
settings <- getPlugin( "Rcpp" )
settings$includes <- ..
cxxfunction( .., settings = settings )
I'm looking at the rest of the first email now.
Romain
Le 07/12/10 17:32, Douglas Bates a écrit :
On looking more closely I can't use cxxfunction with plugin
I have created a small package available as
http://www.stat.wisc.edu/~bates/wrap_1..0.tar.gz that uses the
"non-intrusive" approach.
Attempts to compile produce
dtrMatrix.h:17: error: field ‘d_dat’ has incomplete type
dtrMatrix.h:18: error: field ‘d_dimnames’ has incomplete type
dtrMatrix.h: In me
Le 07/12/10 18:09, Douglas Bates a écrit :
I have created a small package available as
http://www.stat.wisc.edu/~bates/wrap_1..0.tar.gz that uses the
"non-intrusive" approach.
Attempts to compile produce
dtrMatrix.h:17: error: field ‘d_dat’ has incomplete type
dtrMatrix.h:18: error: field ‘d_dim