Re: [Rcpp-devel] RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge?

2011-06-04 Thread Dirk Eddelbuettel
On 5 June 2011 at 10:12, baptiste auguie wrote: | Hi Dirk and all, | | On 4 June 2011 12:04, Dirk Eddelbuettel wrote: | > | > Baptiste, | > | > On 4 June 2011 at 11:45, baptiste auguie wrote: | > | Dear list, | > | | > | My package cda, which I was hoping to release on CRAN, fails to | > | compi

Re: [Rcpp-devel] RcppArmadillo inv() depends on Lapack, zgetri_ not available on CRAN / R-forge?

2011-06-04 Thread baptiste auguie
Hi Dirk and all, On 4 June 2011 12:04, Dirk Eddelbuettel wrote: > > Baptiste, > > On 4 June 2011 at 11:45, baptiste auguie wrote: > | Dear list, > | > | My package cda, which I was hoping to release on CRAN, fails to > | compile on R-forge with error, > | > | ** testing if installed package can b

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Douglas Bates
A thinko on my part. Remove the '*' in front of the std::min_element. On Sat, Jun 4, 2011 at 12:52 PM, Silkworth,David J. wrote: > Many thanks, Doug, I feel so-o-o close, but the revised example does not > compile. > I have taken the liberty to condense our discussion a little here. > dou

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Wray, Christopher
try: int min_el_ind = std::min_element(TimeQ.begin(), TimeQ.end()) - TimeQ.begin(); From: rcpp-devel-boun...@r-forge.wu-wien.ac.at [rcpp-devel-boun...@r-forge.wu-wien.ac.at] on behalf of Silkworth,David J. [silkw...@airproducts.com] Sent: 04 June 2011 18:

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Silkworth,David J.
Thanks, Dirk, the rest of us can just access this URL: http://cppannotations.sourceforge.net/cppannotations/html/ I was also able to get a used copy of "STL Tutorial and Reference Guide" for 12 cents (plus $3.99 shipping) through Amazon. Examples are still most precious, however. -Original

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Silkworth,David J.
Many thanks, Doug, I feel so-o-o close, but the revised example does not compile. I have taken the liberty to condense our discussion a little here. >>> double* myIterator = std::min_element (TimeQ.begin(), TimeQ.end()); >> >> The usual idiom is >> >> double TQmin = *std::min_element(TimeQ.begin

Re: [Rcpp-devel] Strange compiler error when using boost uBLAS on Ubuntu 11.04

2011-06-04 Thread Dirk Eddelbuettel
On 4 June 2011 at 11:52, Douglas Bates wrote: | With | | > sessionInfo() | R version 2.14.0 Under development (unstable) (2011-05-26 r55995) | Platform: x86_64-unknown-linux-gnu (64-bit) | | locale: | [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C | [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Dirk Eddelbuettel
On 4 June 2011 at 11:37, Douglas Bates wrote: | Dirk and Romain recommended the freely-available book "C++ Annotaions" | to me (just google the title to find out where to download it) and Also: edd@max:~$ apt-cache search "c\+\+-annotations" c++-annotations - Extensive tutorial and documentation

[Rcpp-devel] Strange compiler error when using boost uBLAS on Ubuntu 11.04

2011-06-04 Thread Douglas Bates
With > sessionInfo() R version 2.14.0 Under development (unstable) (2011-05-26 r55995) Platform: x86_64-unknown-linux-gnu (64-bit) locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 [

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Douglas Bates
On Sat, Jun 4, 2011 at 11:26 AM, Douglas Bates wrote: > On Sat, Jun 4, 2011 at 11:08 AM, Silkworth,David J. > wrote: >> I ran into this yesterday as I needed to get the position of the least time >> value in a small Que of times that I had extracted from a more complex >> structure.   I ended up

Re: [Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Douglas Bates
On Sat, Jun 4, 2011 at 11:08 AM, Silkworth,David J. wrote: > I ran into this yesterday as I needed to get the position of the least time > value in a small Que of times that I had extracted from a more complex > structure.   I ended up with this problem during a separate work-around, > which is a

[Rcpp-devel] fun(Times) with STL

2011-06-04 Thread Silkworth,David J.
I ran into this yesterday as I needed to get the position of the least time value in a small Que of times that I had extracted from a more complex structure. I ended up with this problem during a separate work-around, which is a story I'd love to tell also. But, to the point. I explored using S

Re: [Rcpp-devel] [Rd] Interfacing a C++ class

2011-06-04 Thread Simon Urbanek
On Jun 4, 2011, at 10:31 AM, soeren.vo...@uzh.ch wrote: > Hello > > Apologies for cross-posting, the discussion should (if) go to R-devel, but I > also want to reach the rcpp-devel people. > > My C++ class FOO is a module available through Rcpp, and it works fine and is > -- so far -- bug fre

[Rcpp-devel] Interfacing a C++ class

2011-06-04 Thread soeren . vogel
Hello Apologies for cross-posting, the discussion should (if) go to R-devel, but I also want to reach the rcpp-devel people. My C++ class FOO is a module available through Rcpp, and it works fine and is -- so far -- bug free. With trying to further develop my R package, I thought it was a good

Re: [Rcpp-devel] namespace error

2011-06-04 Thread soeren . vogel
On 02.06.2011, at 22:51, Laurent Gatto wrote: > On 2 June 2011 20:39, wrote: >> On 02.06.2011, at 18:50, Dirk Eddelbuettel wrote: >> >>> On 2 June 2011 at 18:37, soeren.vo...@uzh.ch wrote: >>> >>> When R CMD CHECKing the package, I repeatedly get the error: >>> | >>> | Error: .onLoad failed in