Re: [Rcpp-devel] Starting R Interpreter from C++

2017-06-12 Thread JJ Allaire
There is also a way to write C++ unit test with the catch framework and have them added to the R test suite: https://rdrr.io/cran/testthat/man/use_catch.html Note this was originally built with integration with testthat in mind but you can call it from any R test suite (docs on doing this are on t

Re: [Rcpp-devel] Starting R Interpreter from C++

2017-06-12 Thread Wolf Vollprecht
RInside seems to have done the trick! Awesome. I have no strong opinions on how to implement the tests. The only reason why I wanted the embedded R solution is because we use it that way with Python and Julia, and it gives us "raw C++" tests. In the future, we might also have a xtensor-test packag

Re: [Rcpp-devel] R binding for nmslib ANN package (Xiaojie Qiu)

2017-06-12 Thread Dmitriy Selivanov
I'm interested, but not sure when will have time. You can start to play with, check python bindings and try to replicate with Rcpp. If you will have some questions you can write directly to me. Will figure out something. 10 июн. 2017 г. 14:00 пользователь < rcpp-devel-requ...@lists.r-forge.r-proje

Re: [Rcpp-devel] Starting R Interpreter from C++

2017-06-12 Thread Dirk Eddelbuettel
On 12 June 2017 at 11:22, Romain Francois wrote: | You might be looking for RInside. Exactly correct in the narrow sense of 'how to get R going from C++'. On 12 June 2017 at 01:11, Wolf Vollprecht wrote: | I am trying to run C++ tests from C++ directly.  | It looks like I need to start the R int

Re: [Rcpp-devel] Performance issues with simple list class

2017-06-12 Thread Dirk Eddelbuettel
On 8 June 2017 at 14:29, Clemens Schmid wrote: | Dear Rcpp developers, | | first of all thank you for your persistent work on and with Rcpp - this | mailinglist is impressive! | | I implemented a class_A and a list class_B following this | (https://stackoverflow.com/a/44303993/3216883) example b

Re: [Rcpp-devel] Starting R Interpreter from C++

2017-06-12 Thread Romain Francois
You might be looking for RInside. > Le 12 juin 2017 à 10:11, Wolf Vollprecht a écrit : > > I am trying to run C++ tests from C++ directly. > It looks like I need to start the R interpreter for memory management etc. > > So far I have achieved moderate success through: > > int Rf_initEmbedded

[Rcpp-devel] Starting R Interpreter from C++

2017-06-12 Thread Wolf Vollprecht
I am trying to run C++ tests from C++ directly. It looks like I need to start the R interpreter for memory management etc. So far I have achieved moderate success through: int Rf_initEmbeddedR(int argc, char **argv) { Rf_initialize_R(argc, argv); setup_Rmainloop(); return 1; } Howev