On Tue, Dec 31, 2013 at 1:45 PM, JJ Allaire <jj.alla...@gmail.com> wrote:

> Am I correct in noting that
>>
>> // [[Rcpp::export]]
>> void test(void)
>> {
>>     // do something
>> }
>>
>> does not generate any code in RcppExports.R?
>>
>
> The problem occurs because the attributes parser doesn't know what to do
> with the void argument specification. If you declare the function with no
> argument specification at all then the function will be handled correctly
> in RcppExports.R, e.g.
>
> // [[Rcpp::export]]
> void foo() {
>
> }
>
>
Thanks. Thought I had tried it both ways, but I'll take your word for it.

THK


-- 
Timothy H. Keitt
http://www.keittlab.org/
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to