<font face="courier new, monospace">Hi all!<br><br>I've been trying to determine why the inst/include/ path is not being added to the compile flags when using Rcpp::depends in a simple sourced .cpp which depends on a .hpp of my package.</font><div>
<font face="courier new, monospace"><br></font></div><div><font face="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.<br>
<br></font><div><font face="courier new, monospace">Does it make sense to require this of the package when the package path could be checked for the existence of inst/include and just append it?</font></div><div><font face="courier new, monospace"><br>
</font></div><div><font face="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. </font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">It would be nice to be able to simply</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">//[[Rcpp::depends(mypkg)</font></div>
<div><font face="courier new, monospace">include <mypackage.h></font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">without needing to provide the plugin for such a seemingly simple case.</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">What do you think?  Harder than I'm imaging and I'm being myopic or is this a worthwhile change for ease of use?</font></div>
<div><font face="courier new, monospace"><br></font></div><div><div><font face="courier new, monospace">--<br>Sincerely,<br>Thell</font></div></div></div>