Re: [Rcpp-devel] Problem exposing inherited member function of derived class to R through RCPP_MODULE

2013-09-24 Thread Romain Francois
Hello, Due to the way modules are currently implemented, what goes in .field and .method must be member of the actual class, not inherited. I'm not sure how to express it otherwise. So instead of using public inheritance as you do in: class A_derived : public A {}; You can use a typedef. Se

Re: [Rcpp-devel] Rcpp and RInside on XCode

2013-09-24 Thread Romain Francois
Hello, I don't think there are a lot of XCode users here. Romain Le 25/09/13 01:22, Nicholas Pezolano a écrit : Hi Rcpp Dev list, I was able to get RInside and Rcpp up and running on a brand new mac book air, with XCode 5 and the macports version of R with absolutely no hassle. I wanted to gi

[Rcpp-devel] Problem exposing inherited member function of derived class to R through RCPP_MODULE

2013-09-24 Thread Luke.Domanski
Hi All, Thanks for your previous help on http://comments.gmane.org/gmane.comp.lang.r.rcpp/5972 I have been able to implement an RCPP_MODULE of the "real code" containing classes represented by classes A and B in the above thread. That set/group of classes implements a generic base class that w

[Rcpp-devel] Rcpp and RInside on XCode

2013-09-24 Thread Nicholas Pezolano
Hi Rcpp Dev list, I was able to get RInside and Rcpp up and running on a brand new mac book air, with XCode 5 and the macports version of R with absolutely no hassle. I wanted to give XCode 5 and shot and was wondering if anyone was able to successfully compile and link RInside or Rcpp with Xcode

Re: [Rcpp-devel] Package checking using R-devel (3.1) and Rcpp

2013-09-24 Thread Robert Bruggner
Dirk, Simon, Thank you for such a quick response! I really appreciate the help. It sounds like things are slightly out of my control for the moment but will note the upcoming changes to the Rcpp codebase in my CRAN submission. Also, thank you for the pointer to the Makevars information and the

Re: [Rcpp-devel] Package checking using R-devel (3.1) and Rcpp

2013-09-24 Thread Simon Zehnder
Hi Rob, when I download the latest version Rclusterpp 0.12.1 I see in the Makevars the typical PKG_LIBS += `$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` -fopenmp. In there the function Rcpp:::LdFlags() calls internally RcppLdFlags() (see line 84 in the RcppLdpath.R file). Looking into the R fol

Re: [Rcpp-devel] Package checking using R-devel (3.1) and Rcpp

2013-09-24 Thread Dirk Eddelbuettel
Hi Robert. On 24 September 2013 at 13:21, Robert Bruggner wrote: | Hi Rcpp-devel, | | I'm new to the Rcpp game so apologies if this question has be erroneously posted to this list. Yes, it is absolutely the correct list. | I've recently taken over maintenance of a package (Rclusterpp) that

[Rcpp-devel] Package checking using R-devel (3.1) and Rcpp

2013-09-24 Thread Robert Bruggner
Hi Rcpp-devel, I'm new to the Rcpp game so apologies if this question has be erroneously posted to this list. I've recently taken over maintenance of a package (Rclusterpp) that makes heavy use of Rcpp & RcppEigen and have been trying to build and check the package for submission to CRAN. I'm

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Simon Zehnder
On Sep 24, 2013, at 3:30 PM, Dirk Eddelbuettel wrote: > > On 24 September 2013 at 14:58, Simon Zehnder wrote: > | Thanks for giving it a try! > > Seconded. > > By the same token, if there are any Ruby/jekyll whizzes in the audience, we'd > take enhancements for mathjax and/or plot displays.

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Dirk Eddelbuettel
On 24 September 2013 at 14:58, Simon Zehnder wrote: | Thanks for giving it a try! Seconded. By the same token, if there are any Ruby/jekyll whizzes in the audience, we'd take enhancements for mathjax and/or plot displays. Otherwise the status quo (.Rmd or .cpp into nicely formatted html inclu

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Simon Zehnder
J.J., absolutely. Do not spend any more time on it. Everyone does understand what O(N^3) or an order of N to the power of 3 means. Thanks for giving it a try! Best Simon On Sep 24, 2013, at 2:40 PM, JJ Allaire wrote: > Okay, let's do it that way for now (I spent about 30 minutes seeing if

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread JJ Allaire
Okay, let's do it that way for now (I spent about 30 minutes seeing if there was a workaround and haven't found one yet). J.J. On Tue, Sep 24, 2013 at 8:20 AM, Simon Zehnder wrote: > Hi Dirk, > > good to now. I worked with knitr a lot but never with Ruby/Jekyll, so I > deduced prematurely that

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Simon Zehnder
Hi Dirk, good to now. I worked with knitr a lot but never with Ruby/Jekyll, so I deduced prematurely that formulas are possible. As I wrote to J.J. I can as well use just O(N^3) or write it out. I just didn't want to submit an article that does not exhibit the expected text form. Best Simon

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Simon Zehnder
Hi J.J., thanks for the response. If there is no easy workaround I either use O(N^3) or write it out. I think everyone understands what it means. Best Simon On Sep 24, 2013, at 1:51 PM, JJ Allaire wrote: > Simon, > > This works differently than standard R Markdown because there is a differe

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Dirk Eddelbuettel
On 24 September 2013 at 13:10, Simon Zehnder wrote: | I need a little help with the markdown in .cpp files for the Rcpp-Gallery: | How do I type in inline formulas? For example O(N^3)? I tried $O(N^3)$ and | also $$latex O(N^3)$$ but nothing seems to work (I forked the repository | and make/make p

Re: [Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread JJ Allaire
Simon, This works differently than standard R Markdown because there is a different markdown processor (Maruku) being used by jekyll. So out of the box this doesn't work but a workaround might be possible -- I'll investigate later today and let you know if I find something that works. J.J. On T

[Rcpp-devel] Formulas in Markdown of Rcpp-Gallery

2013-09-24 Thread Simon Zehnder
Dear Rcpp::Users and Rcpp::Devels, I need a little help with the markdown in .cpp files for the Rcpp-Gallery: How do I type in inline formulas? For example O(N^3)? I tried $O(N^3)$ and also $$latex O(N^3)$$ but nothing seems to work (I forked the repository and make/make preview works perfect -