Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread romain
Hello, This is related to this change: 2013-01-15 Dirk Eddelbuettel * src/api.cpp (Rcpp): Commented-out coerce_to_string() for real and complex arguments as R-devel (as of today) dislikes use of non-API functions Rf_EncodeComplex’, ‘Rf_EncodeReal’, ‘Rf_formatComplex’

[Rcpp-devel] using Roxygen2 in a methods exported via a module

2013-03-29 Thread Robin Girard
Hi list, I have a c++ class and associated methods in my package wich are exported through a module, but I cannot find how to export the documentation of the method and the class. I am using Rcpp 10.3, Roxygen2, ... Note that when I use module to export a function (not a method from my class)

Re: [Rcpp-devel] using Roxygen2 in a methods exported via a module

2013-03-29 Thread romain
Hello, This is just not supported (yet). Romain Le 2013-03-29 09:39, Robin Girard a écrit : Hi list, I have a c++ class and associated methods in my package wich are exported through a module, but I cannot find how to export the documentation of the method and the class. I am using Rcpp 10.3

Re: [Rcpp-devel] Simple project segfaults

2013-03-29 Thread Berry Kriesels
Hi again, Later on I realised I had made some fundamental programming errors resulting in the mentioned segfault entirely not related to rcpp. (fixed now by the way). I know that does not earn me many brownie points, so my apologies for my sloppy code. ;) Thus far I can say that I still real

Re: [Rcpp-devel] Simple project segfaults

2013-03-29 Thread Dirk Eddelbuettel
Berry, On 29 March 2013 at 10:24, Berry Kriesels wrote: | Hi again, | | Later on I realised I had made some fundamental programming errors resulting in | the mentioned segfault entirely not related to rcpp. (fixed now by the way). | I know that does not earn me many brownie points, so my apolo

Re: [Rcpp-devel] using Roxygen2 in a methods exported via a module

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 09:44, rom...@r-enthusiasts.com wrote: | | Hello, | | This is just not supported (yet). I'd rather say: "This was never supported nor announced to be supported." Unless I am forgetting something here. The "(yet)" has the same meaning here as stating that every conceivable

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 09:11, rom...@r-enthusiasts.com wrote: | | Hello, | | This is related to this change: | | 2013-01-15 Dirk Eddelbuettel | | * src/api.cpp (Rcpp): Commented-out coerce_to_string() for real and | complex arguments as R-devel (as of today) dislikes use of non-API

Re: [Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo

2013-03-29 Thread Dirk Eddelbuettel
Christian, Thanks -- applied to RcppArmadillo as rev4296. Any news on the Rcpp Gallery writeup on your nice sample() function? [Hint, Hint] Dirk -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com ___ Rcpp-devel mailing list Rc

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread romain
Le 2013-03-29 14:31, Dirk Eddelbuettel a écrit : On 29 March 2013 at 09:11, rom...@r-enthusiasts.com wrote: | | Hello, | | This is related to this change: | | 2013-01-15 Dirk Eddelbuettel | | * src/api.cpp (Rcpp): Commented-out coerce_to_string() for real and | complex arguments as R-

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 15:24, rom...@r-enthusiasts.com wrote: | Le 2013-03-29 14:31, Dirk Eddelbuettel a écrit : | > On 29 March 2013 at 09:11, rom...@r-enthusiasts.com wrote: | > | | > | Hello, | > | | > | This is related to this change: | > | | > | 2013-01-15 Dirk Eddelbuettel | > | | > | * sr

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 09:40, Dirk Eddelbuettel wrote: | | On 29 March 2013 at 15:24, rom...@r-enthusiasts.com wrote: | | Le 2013-03-29 14:31, Dirk Eddelbuettel a écrit : | | > On 29 March 2013 at 09:11, rom...@r-enthusiasts.com wrote: | | > | | | > | Hello, | | > | | | > | This is related to this c

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread romain
Cool. I'll have a look when I'm back from easter weekend. Romain Le 2013-03-29 16:00, Dirk Eddelbuettel a écrit : On 29 March 2013 at 09:40, Dirk Eddelbuettel wrote: | | On 29 March 2013 at 15:24, rom...@r-enthusiasts.com wrote: | | Le 2013-03-29 14:31, Dirk Eddelbuettel a écrit : | | > On 29 M

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 16:20, rom...@r-enthusiasts.com wrote: | Cool. I'll have a look when I'm back from easter weekend. Sounds good. And that point, it would be really nice if you could also restore the ability to build Rcpp, which appears to have broken with your Data.Frame patch. Details are b

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Kevin Ushey
Thanks for the quick responses. It seems counter-productive for R Core to be removing API entry points, at least doing so without informing package maintainers of newly implemented and tested alternatives. I wonder if it's due to the introduction of 'long' vectors, and the team decided it would be

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 08:48, Kevin Ushey wrote: | Thanks for the quick responses. Thanks for the reproducible bug report. In (some version of) Rcpp 0.10.3.1 [1] you can now use your function again: R> sourceCpp("/tmp/kevin.cpp") R> set.seed(42) R> x <- sample(1:10, 20, replace=TRUE) R> table(x

Re: [Rcpp-devel] Bug with table sugar and NumericVector in Rcpp 0.10.3

2013-03-29 Thread Kevin Ushey
Great. Thanks for the quick response and all the work you and Romain put into Rcpp! -Kevin On Fri, Mar 29, 2013 at 9:35 AM, Dirk Eddelbuettel wrote: > > On 29 March 2013 at 08:48, Kevin Ushey wrote: > | Thanks for the quick responses. > > Thanks for the reproducible bug report. > > In (some ver

[Rcpp-devel] Datetime substraction bug ?

2013-03-29 Thread Robin Girard
Hi List why is it that we have in the Datetime definition (here http://dirk.eddelbuettel.com/code/rcpp/html/Date_8cpp_source.html#l00271 ) double operator-(const Datetime& d1, const Datetime& d2) { return d2.m_dt - d1.m_dt; } bool operator<(const Datetime &d1, const Datetime& d2) { return d1.m_d

Re: [Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo

2013-03-29 Thread Jonathan Olmsted
Yup. Progress was waiting on finalizing behavior of sample(). Current status is visible here: https://github.com/olmjo/rcpp-gallery/blob/gh-pages/src/2013-03-19-using-the-Rcpp-based-sample-implementation.Rmd -Jonathan - J.P

[Rcpp-devel] Error in RCpp and Wt toolkit

2013-03-29 Thread John Robson
The example: http://dirk.eddelbuettel.com/blog/2011/11/30/#rinside_and_wt >From the code: https://github.com/JohnRobson/Wt-Tests/blob/master/RInside/wtdensity.cpp After running, the site appears OK: http://imagebin.org/252132 But immediately a segmentation error is throw: http://paste.ubuntu.com

Re: [Rcpp-devel] Sample function(s) for inclusion in RcppArmadillo

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 18:43, Jonathan Olmsted wrote: | Yup. Progress was waiting on finalizing behavior of sample(). | | Current status is visible here: https://github.com/olmjo/rcpp-gallery/blob/ | gh-pages/src/2013-03-19-using-the-Rcpp-based-sample-implementation.Rmd Awesome :) Will check this

Re: [Rcpp-devel] Error in RCpp and Wt toolkit

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 19:24, John Robson wrote: | The example: | http://dirk.eddelbuettel.com/blog/2011/11/30/#rinside_and_wt | | >From the code: | https://github.com/JohnRobson/Wt-Tests/blob/master/RInside/wtdensity.cpp | | After running, the site appears OK: http://imagebin.org/252132 | | But i

Re: [Rcpp-devel] Datetime substraction bug ?

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 23:37, Robin Girard wrote: | Hi List | | why is it that we have in the Datetime definition | (here http://dirk.eddelbuettel.com/code/rcpp/html/Date_8cpp_source.html#l00271 ) | | double operator-(const Datetime& d1, const Datetime& d2) { return d2.m_dt - d1.m_dt; } | bool op

Re: [Rcpp-devel] Error in RCpp and Wt toolkit

2013-03-29 Thread John Robson
Hi Dirk, thank for your support. I'm using: Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.39-2 i686 GNU/Linux Debian 7.0 wheezy G++: 4.7.2 STL: 4.7.2 BOOST: 104900 Wt: 3.2.3 R version 2.15.1 (2012-06-22) Platform: i486-pc-linux-gnu (32-bit) RInside_0.2.10 Rcpp_0.10.3 Rcpp for Qt works perfectly, but a

[Rcpp-devel] problems with rInside in Ubuntu

2013-03-29 Thread Walter Mascarenhas
Dirk, SInce I wrote you this afternoon, I upgraded to R 2.15.3 and got version 0.10.3 of rcpp and 0.2.10 of Rinside. I am using ubuntu 12.04 LTS, with g++4.7.2 and Qt 5.0.1 in Qt creator 2.6.2 (the first few lines of the makefile generated by qmake are at the end of this message) Now rinsides

Re: [Rcpp-devel] Error in RCpp and Wt toolkit

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 21:11, John Robson wrote: | Hi Dirk, thank for your support. | | I'm using: | Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.39-2 i686 GNU/Linux | Debian 7.0 wheezy | G++: 4.7.2 | STL: 4.7.2 | BOOST: 104900 | Wt: 3.2.3 | R version 2.15.1 (2012-06-22) | Platform: i486-pc-linux-gnu (32

Re: [Rcpp-devel] problems with rInside in Ubuntu

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 22:13, Walter Mascarenhas wrote: | Dirk, | |   SInce I wrote you this afternoon, I upgraded to R 2.15.3 and got version | 0.10.3 of rcpp and | 0.2.10 of Rinside. I am using ubuntu 12.04 LTS, with g++4.7.2 and Qt 5.0.1 in | Qt creator 2.6.2 | (the first few lines of the makefil

Re: [Rcpp-devel] Error in RCpp and Wt toolkit

2013-03-29 Thread John Robson
Hey Dirk, $ ./boostEx Hello, world from main() Hello, world from use() Hello, world from use() At end value is 2 RInside/inst/examples/threads Works perfectly. I also tried Wt example in other 2 machines with Ubuntu 12.04 and Wt 3.2.3 and I get the same error in both... Your http://dirk.eddelbu

Re: [Rcpp-devel] Error in RCpp and Wt toolkit

2013-03-29 Thread Dirk Eddelbuettel
On 29 March 2013 at 22:04, John Robson wrote: | Hey Dirk, | | $ ./boostEx | Hello, world from main() | Hello, world from use() | Hello, world from use() | At end value is 2 | | RInside/inst/examples/threads Works perfectly. Hm. That would suggest that the threating / mutex issues are fine at th

Re: [Rcpp-devel] Datetime substraction bug ?

2013-03-29 Thread Robin Girard
Thanks you're right I already wrote it myself with getFractional... and indeed that's not really what we should call a "bug" but it took me a while to understand that if date1-date2>0 then date1 À: "Robin Girard" Cc: rcpp-devel@lists.r-forge.r-project.org Envoyé: Samedi 30 Mars 2013 00:44:08