[Rcpp-commits] r4079 - pkg/Rcpp/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Dec 4 22:02:40 CET 2012


Author: jjallaire
Date: 2012-12-04 22:02:39 +0100 (Tue, 04 Dec 2012)
New Revision: 4079

Modified:
   pkg/Rcpp/src/Attributes.cpp
Log:
add just argument name inside .Call

Modified: pkg/Rcpp/src/Attributes.cpp
===================================================================
--- pkg/Rcpp/src/Attributes.cpp	2012-12-04 20:01:53 UTC (rev 4078)
+++ pkg/Rcpp/src/Attributes.cpp	2012-12-04 21:02:39 UTC (rev 4079)
@@ -278,8 +278,8 @@
             }
             
             // add arguments
-            if (!args.empty())
-                ostr << ", " << args;
+            for (size_t i = 0; i<arguments.size(); i++) 
+                ostr << ", " << arguments[i].name();   
             ostr << ")";
             if (function.type().isVoid())
                 ostr << ")";



More information about the Rcpp-commits mailing list