I wanted to thank everyone for help on this. Putting the typedef in a
header (inst/include/RItools.h) the export function would auto-include was
exactly what I was looking for. This discussion also prompted me to think a
little more about the interface my package should export should anyone else
want to write test statistic functions that are compatible.

Thanks again,
-M



On Sat, Oct 19, 2013 at 3:15 PM, Dirk Eddelbuettel <e...@debian.org> wrote:

>
> On 19 October 2013 at 16:06, JJ Allaire wrote:
> | For it to actually work though we'd need to modify Makevars as well (as
> Romain
> | pointed out) so that the RcppExports.cpp could see the include file.
> This might
> | get trickly.
>
> Well right now we simply set people up to fail / having to create it
> themselves. Rcpp.package.skeleton() has always created src/Makevars{.win}
> but
> currently does not include PKG_CPPFLAGS = ...  Maybe it should. Anyway...
>
> | My thought was that we should either generate a fully working
> | solution or failing that generation enough pointers/documentation to get
> most
> | users over the hump.
>
> The thread is long enough, so maybe the next someone struggles with this
> they
> may find. If someone is itching to fix this, we will gladly take patches.
>
> Dirk
>
> --
> Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to