Re: [Rcpp-devel] Errors while compiling a script (seems to be related to Fortran)

2014-09-04 Thread Xiao He
Hi Dirk, Thanks for the comments. Suppose if I were to go with your third suggestion, do you happen to have any examples of RcppArmadillo calling SEXP functions that I can refer to? In the past, I tried (1) putting the set of MASS functions in a separate MASS.cpp file, (2) creating a header file

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-04 Thread Pratibha Rana
Hi Kevin, For me the -O2 flag did the trick. I verified it multiple times. Just remove the -O2 and the code segfaults while initializing RInside, add the -O2 flag and everybody is happy. It is weird. I cannot reproduce it independently of RInside because the segfault occurs when RInside is bei

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-04 Thread Dirk Eddelbuettel
On 4 September 2014 at 12:13, Pratibha Rana wrote: | For me the -O2 flag did the trick. I verified it multiple times. Just remove | the -O2 and the code segfaults while initializing RInside, add the -O2 flag and | everybody is happy. It is weird. Makes no sense, apart from maybe revealing a race

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-04 Thread Pratibha Rana
I tried with the create() as well and I had the same issue, so I just tried to simplify the code as much as possible to get down to the root. It was not just the dataframe, function execution was also causing problem. Here is another snippet which was causing the segfault. Again just adding the -O2

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Smith, Dale (Norcross)
Doxygen is so useful because it’s automatically generated. Keeping up with additions or changes with hand-crafted API documentation is not easy. You should at least include a link to the Rcpp Gallery. http://gallery.rcpp.org/ I’d prefer detailed documentation for the unit tests as they are very

Re: [Rcpp-devel] problems while upgrading to Rcpp 0.11.2

2014-09-04 Thread Dirk Eddelbuettel
On 4 September 2014 at 12:57, Pratibha Rana wrote: | I tried with the create() as well and I had the same issue, so I just | tried to simplify the code as much as possible to get down to the root. | It was not just the dataframe, function execution was also causing | problem. Here is another snipp

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Tim Keitt
This is tremendously helpful and exactly what is needed. Thank you for putting that together. THK On Wed, Sep 3, 2014 at 10:03 PM, Yixuan Qiu wrote: > Dear all, > I believe that everyone in this list has seen the benefit of using Rcpp to > incorporate C++ code and develop R packages, but it's

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Qiang Kou
It will be great, however, it is too hard to maintain a hand-crafted document. Rcpp is changing really rapidly. For users who really need to know all the details of every class, I believe they are comfortable with Doxygen. For other users, the detailed documents for examples and testing may be m

[Rcpp-devel] Problem with modules

2014-09-04 Thread Stefan Boehringer
I try to get the Rcpp.package.skeleton example running. Rcpp.package.skeleton('GeneticsHaplotype', module = T); My zzz.R looks like: .onLoad <- function(libname, pkgname){ #loadRcppModules() loadModule("yada", TRUE) } I also tried various variations (as indicated by the comments in zzz.

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Tim Keitt
On Thu, Sep 4, 2014 at 9:13 AM, Qiang Kou wrote: > It will be great, however, it is too hard to maintain a hand-crafted > document. > > Rcpp is changing really rapidly. > > For users who really need to know all the details of every class, I > believe they are comfortable with Doxygen. > Or perha

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Gabor Grothendieck
On Wed, Sep 3, 2014 at 11:03 PM, Yixuan Qiu wrote: > Dear all, > I believe that everyone in this list has seen the benefit of using Rcpp to > incorporate C++ code and develop R packages, but it's also the fact that > currently there is rarely a complete reference which documents every detail > of

Re: [Rcpp-devel] Problem with modules

2014-09-04 Thread Dirk Eddelbuettel
On 4 September 2014 at 18:28, Stefan Boehringer wrote: | I try to get the Rcpp.package.skeleton example running. My favourite approach for cases like this is to look at existing / working packages. We do have an example in the unit tests set in inst/unitTests/testRcppModule/ and it

Re: [Rcpp-devel] Problem with modules

2014-09-04 Thread Dirk Eddelbuettel
On 4 September 2014 at 11:58, Dirk Eddelbuettel wrote: | | On 4 September 2014 at 18:28, Stefan Boehringer wrote: | | I try to get the Rcpp.package.skeleton example running. | | My favourite approach for cases like this is to look at existing / working | packages. We do have an example in the u

Re: [Rcpp-devel] Errors while compiling a script (seems to be related to Fortran)

2014-09-04 Thread Avraham Adler
I'm no expert here, but Armadillo does have built in QR decomposition < http://arma.sourceforge.net/docs.html#qr> and sorting < http://arma.sourceforge.net/docs.html#sort> routines. Perhaps you can use those and dispense with the need for importing anything else? Avi On Thu, Sep 4, 2014 at 3:30

Re: [Rcpp-devel] Rcpp API Reference

2014-09-04 Thread Yixuan Qiu
Hi all, I do appreciate your kind suggestions, and will definitely take Doxygen into account. The reason why I'm not using it at the moment is that I could be freer to organize the structure of a manually edited document, and that's why I titled this project as "Rcpp Notes". It's a kind of draft at