<font face="arial,helvetica,sans-serif"><br></font><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">All to say, it is unclear to me whether the intended use of compileAttributes() is solely to help package writers allow package users to more easily access the c++ functions at the R layer or additionally to also streamline how package developers source c++ files within their own package development process under Rcpp.</blockquote>
<div><br></div><div>It is indeed intended to streamline how package developers work. With compileAttributes you only need to create cpp files that contain function definitions marked with Rcpp::export attributes (you don't need to write any explicit code in .h or .R files, this code is generated by compileAttributes).</div>
<div><br></div><div>If you pull the latest Rpp from R-forge  you'll find:</div><div><br></div><div>(a) An expanded vignette which goes into more details about the whole mechanism (especially as it relates to packages).</div>
<div><br></div><div>(b) An updated version of Rcpp.package.skeleton which you can optionally pass a parameter of attributes = TRUE to see what hello, world using attributes looks like.</div><div> </div></div>