<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 30, 2013 at 10:36 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi Tim,<br>
<br>
Nice to see you here!<br></blockquote><div><br></div><div>Nice to be here. Happy new year!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 30 December 2013 at 22:15, Tim Keitt wrote:<br>
| Apologies if this is the wrong list for user questions -- happy to be<br>
| redirected -- I did not see it immediately.<br>
<br>
</div>And it is absolutely the right list: rcpp-devel as in our understanding<br>
'using' of Rcpp means developing with it.<br>
<div class="im"><br>
| Am I correct in noting that<br>
|<br>
| // [[Rcpp::export]]<br>
| void test(void)<br>
| {<br>
|     // do something<br>
| }<br>
|<br>
| does not generate any code in RcppExports.R?<br>
<br>
</div>Yes, 'void foo(void) { ... }' is a corner case that is not well covered by<br>
Rcpp Attributes. At the end of the day, we always convert into 'SEXP<br>
.Call("foo", SEXP a, SEXP b, ...)' so the args in, result out structure is<br>
pretty tight.<br>
<br>
I have done 'bool foo(int ignoreme) { ... }'  to work around it, or just<br>
returned NULLs. If you write explicit converters (maybe by manually<br>
postprocessing what RcppExports.cpp has) you could approximate it (by adding<br>
the require input / output args later) but the main issue is that Attributes<br>
does not do it.  Maybe JJ will chime in with some comments.<br></blockquote><div><br></div><div>I have</div><div><br></div><div>SEXP theFun(const char* ignored = "dummy")</div><div>{</div><div>  // do something</div>

<div>  return R_NilValue;</div><div>}</div><div><br></div><div>Wasn't sure if I'd missed something; thanks for the clarification.</div><div><br></div><div>THK</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Cheers, Dirk<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dirk Eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Timothy H. Keitt<br><a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a><br>
</div></div>