<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">would it be possible to output the added code fragments, e.g.,<br>

----<br>
RcppExport SEXP sourceCpp_7387_none_in_lots_out() {<br>
BEGIN_RCPP<br>
    Rcpp::RNGScope __rngScope;<br>
    point_l __result = none_in_lots_out();<br>
    return Rcpp::wrap(__result);<br>
END_RCPP<br>
}<br>
----<br>
immediately following the "// [[Rcpp::export]]" line?  (rather than<br>
waiting till the end of the file.)<br></blockquote><div><br></div><div>We don't re-write the file because we want the gcc error messages to correspond to the same lines of the file that the user sees in their editors. Writing the shims at the bottom of the file provides this (very desirable) behavior.</div>
<div><br></div><div>We could get into the business of tracking offsets of injected chunks and re-writing the gcc error messages, but we'd only do this if there was a huge payoff in user convenience/effectiveness which I don't see at this point.</div>
<div> </div></div>