Skip to content
Prev 489 / 10988 Next

[Rcpp-devel] Vector<>::create

Done. Named is no longer a class but two templated functions. The 
interface is 100% preserved, and is extended to simpler vectors.

Not a single line of the unit tests has changed.

This shows that both interfaces can be used with simpler types:

fx <- cfunction( signature(), '
         return IntegerVector::create(
                 Named( "foo" ) = 20,
                 Named( "bar", 30 ) ) ;
', Rcpp = TRUE, includes = "using namespace Rcpp;" )


 > fx()
foo bar
  20  30

Romain

Le 19/03/10 15:35, Romain Francois a ?crit :