<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The RcppArmadillo.package.skeleton does not work as I am providing a reference to a cpp file with attributes.  I get this error:<div>
<br></div><div>Error in RcppArmadillo.package.skeleton("NewPackage", example_code = FALSE,  : </div>
<div>unused argument(s) (cpp_files = c("test_arma3.cpp"))</div></blockquote><div><br></div><div>Some additional insight: we plan to update Rcpp.package.skeleton to be able to interrogate packages like RcppArmadillo for their packaging dependencies. This will be based on the inline plugin system. For example, if you call this function:</div>
<div><br></div><div>RcppArmadillo:::inlineCxxPlugin()</div><div><br></div><div>You'll see that RcppArmadillo can report everything that's required for it's Makevars, etc. The inline plugin system is very general so all packages will be able to participate in this (and won't necessarily have to create their own package.skeleton function unless they want to include additional example code).</div>
<div><br></div><div>For now, if you just call RcppArmadillo.package.skeleton with it's default arguments and then drop your cpp file into the package src directory things should work fine (note you'll need to remember to instrument a call to compileAttributes at the appropriate time).</div>
<div><br></div><div>J.J.</div><div><br></div><div><br></div></div>