[Rcpp-commits] r2746 - pkg/Rcpp/inst/examples/RcppInline

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Dec 8 14:09:47 CET 2010


Author: edd
Date: 2010-12-08 14:09:47 +0100 (Wed, 08 Dec 2010)
New Revision: 2746

Modified:
   pkg/Rcpp/inst/examples/RcppInline/RcppInlineExample.r
Log:
correct signature()


Modified: pkg/Rcpp/inst/examples/RcppInline/RcppInlineExample.r
===================================================================
--- pkg/Rcpp/inst/examples/RcppInline/RcppInlineExample.r	2010-12-08 13:02:20 UTC (rev 2745)
+++ pkg/Rcpp/inst/examples/RcppInline/RcppInlineExample.r	2010-12-08 13:09:47 UTC (rev 2746)
@@ -12,10 +12,10 @@
           for (int d = 0; d < 9; d++)
             vec(i++) = a*b - c*d;
 
-    return vec; 
+    return vec;
 '
 
-funx <- cxxfunction(signature(n="integer"), foo, plugin = "Rcpp" )
+funx <- cxxfunction(signature(), foo, plugin = "Rcpp" )
 
 dd.inline.rcpp <- function() {
     res <- funx()



More information about the Rcpp-commits mailing list