<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-family:'courier new',monospace">Looking through the source of ./pkg/Rcpp/R/Attributes.R contains it seems that a depended upon package _must_ define a plugin if the inst/include is to get appended to the sourced files build environment.</span></div>
</blockquote><div><br></div><div>We do indeed add inst/include to the compilation for all packages listed in Rcpp::depends (Attributes.R:371 adds the package name to the list then the call to .buildClinkCppFlags on line 419 does the work of locating the actual directory.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><span style="font-family:'courier new',monospace">My use case is that of a header only package providing Rcpp::interface(cpp) only where my package DESCRIPTION already contains the depends providing everything outside of the wrap and as forwarders. So while building the package does require makevars(.win) info the sourceCPP source code doesn't because sourceCPP does that for the user. </span></div>
</div></blockquote><div><br></div><div>A hint as to what might be happening is in your reference to as and wrap forwarders. Are there as and wrap forwarders that are sitting in another include file? If you want to automatically inject additional include files (e.g. for as and wrap) then you definitely need to define an inline plugin.</div>
<div><br></div><div>If we can't get to the bottom of this by discussion perhaps you could send a link to either your source code or a representative example and I'll take a closer look.</div><div><br></div><div>J.J.</div>
<div><br></div><div><br></div></div>