Re: [Rcpp-devel] Vector<>::create

2010-03-19 Thread Dirk Eddelbuettel
On 19 March 2010 at 17:05, Romain Francois wrote: | 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 simp

Re: [Rcpp-devel] Vector<>::create

2010-03-19 Thread Romain Francois
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 In

Re: [Rcpp-devel] Vector<>::create

2010-03-19 Thread Romain Francois
Le 19/03/10 15:03, Dirk Eddelbuettel a écrit : > > > On 19 March 2010 at 14:01, Romain Francois wrote: > | I've commited Vector<>::create methods to support creation of any kind > | of vectors with named or unnamed objects. examples: > | > | // creating an unamed integer vector > | IntegerVector::c

Re: [Rcpp-devel] Vector<>::create

2010-03-19 Thread Dirk Eddelbuettel
On 19 March 2010 at 14:01, Romain Francois wrote: | I've commited Vector<>::create methods to support creation of any kind | of vectors with named or unnamed objects. examples: | | // creating an unamed integer vector | IntegerVector::create( 10, 20 ) ; | | // creating a named character vector

[Rcpp-devel] Vector<>::create

2010-03-19 Thread Romain Francois
Hello, I've commited Vector<>::create methods to support creation of any kind of vectors with named or unnamed objects. examples: // creating an unamed integer vector IntegerVector::create( 10, 20 ) ; // creating a named character vector CharacterVector::create( _["foo"] = "bar", _["bar"] = "fo