Re: [Rcpp-devel] Only 64-bit version of RcppArmadillo gets installed

2010-03-19 Thread Dirk Eddelbuettel
Davor, Thanks for the bugreports. Looks like you found one in Armadillo 0.9.0... On 19 March 2010 at 14:53, Davor Cubranic wrote: | OS X Snow Leopard with R 2.10.1 | | I installed Rcpp, RcppArmadillo, and RcppExamples from SVN head a day or two ago, and noticed that Rcpp and RcppExamples are

Re: [Rcpp-devel] Unit test fails in RcppArmadillo

2010-03-19 Thread Davor Cubranic
The unit test runs fine with Armadillo version 0.9.4. Davor On 2010-03-19, at 1:09 PM, Davor Cubranic wrote: > On 2010-03-19, at 11:06 AM, Romain Francois wrote: > >> Le 19/03/10 18:50, Davor Cubranic a écrit : >>> >>> I get the following error when running unit tests for the current SVN head

[Rcpp-devel] Only 64-bit version of RcppArmadillo gets installed

2010-03-19 Thread Davor Cubranic
OS X Snow Leopard with R 2.10.1 I installed Rcpp, RcppArmadillo, and RcppExamples from SVN head a day or two ago, and noticed that Rcpp and RcppExamples are installed in both 32- and 64-bit versions, as opposed to only the 64-bit version of RcppArmadillo package. My version of libarmadillo is a

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-19 Thread Romain Francois
Le 19/03/10 21:26, Douglas Bates a écrit : > > By the way, I'm sorry for the misleading subject line in my original > post. When I started the message I was trying to extract one of those > functions in the "family" list and create a call. > > > On Fri, Mar 19, 2010 at 3:20 PM, Romain Francois >

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-19 Thread Douglas Bates
By the way, I'm sorry for the misleading subject line in my original post. When I started the message I was trying to extract one of those functions in the "family" list and create a call. On Fri, Mar 19, 2010 at 3:20 PM, Romain Francois wrote: > Hello, > > The following works for me : > > requ

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-19 Thread Romain Francois
Hello, The following works for me : require( Rcpp ) require( inline ) fx <- cfunction( signature( data_ = "list" ), ' List data(data_) ; std::string family = data["family"] ; std::string link = data["link"] ; std::cout << "family : " << family << std::endl ; std::cout << "link : " << link

Re: [Rcpp-devel] Unit test fails in RcppArmadillo

2010-03-19 Thread Davor Cubranic
On 2010-03-19, at 11:06 AM, Romain Francois wrote: > Le 19/03/10 18:50, Davor Cubranic a écrit : >> >> I get the following error when running unit tests for the current SVN head >> of RcppArmadillo: >> >> Executing test function test.wrap.R ... >> run-time error: Mat::init(): can't change the

[Rcpp-devel] Extract a function from a list and create a call

2010-03-19 Thread Douglas Bates
I must be missing something horribly obvious but I have now spent several hours trying to find a way to extract a character string from a list. I am more-or-less certain that I am copying a construction in the unitTests/runit.CharacterVector.R but the compiler just keeps spitting out error message

Re: [Rcpp-devel] Unit test fails in RcppArmadillo

2010-03-19 Thread Romain Francois
Le 19/03/10 18:50, Davor Cubranic a écrit : > > I get the following error when running unit tests for the current SVN head of > RcppArmadillo: > > Executing test function test.wrap.R ... > run-time error: Mat::init(): can't change the amount of memory as auxiliary > memory is in use > > This is

[Rcpp-devel] Unit test fails in RcppArmadillo

2010-03-19 Thread Davor Cubranic
I get the following error when running unit tests for the current SVN head of RcppArmadillo: Executing test function test.wrap.R ... run-time error: Mat::init(): can't change the amount of memory as auxiliary memory is in use This is on OS X Snow Leopard with R 2.10.1 and libArmadillo 0.9.0.

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

Re: [Rcpp-devel] ColDatum constructors memory safety

2010-03-19 Thread Dirk Eddelbuettel
On 18 March 2010 at 21:04, Alistair Gee wrote: | I'm not sure that you can verify the fix with an empirical test, short | of using something like valgrind b/c the bug would occur only due to | chance: | | Here is a simpler scenario: | | ColDatum c1; // via the default constructor | Col

[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