Re: [Rcpp-devel] Rcpp11 being checked by Travis CI with minimal example

2016-03-19 Thread Kevin Ushey
It sounds like you just need to declare that your package depends on C++11 in the standard way: - Add 'SystemRequirements: C++11' to your DESCRIPTION file, - Create files at 'src/Makevars[.win]', and make sure you have CXX_STD = CXX11 This is documented in more detail in R-exts: see https://cran.

[Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

2016-03-19 Thread aakremena
Dear Rcpp Developer List subscribers, I am experimenting with OpenMP on Rcpp. Here is a simple program I'm trying to run on my (4-core MacBookPro 8,3, Intel Cor i7, 2.3 GHz) computer (clang-omp compiler): #include #include #ifdef _OPENMP #include #endif #include #include #include //[[Rcpp:

Re: [Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

2016-03-19 Thread Dirk Eddelbuettel
On 19 March 2016 at 14:11, aakrem...@aol.com wrote: | Dear Rcpp Developer List subscribers, | | I am experimenting with OpenMP on Rcpp. Here is a simple program I'm trying to | run on my (4-core MacBookPro 8,3, Intel Cor i7, 2.3 GHz) computer (clang-omp | compiler): | | #include | #include |

Re: [Rcpp-devel] RInside for hft strategy.

2016-03-19 Thread Dirk Eddelbuettel
On 17 March 2016 at 12:41, Harry G wrote: | Thinking of using RInside for predicting a theoretical price for a high | frequency trading strategy. Strategy is written in C++. | | Let's assume I want to use the lm() function. | Flow i'm imagining:  get the factors in c++ -> have R pre-process them

[Rcpp-devel] Rcpp11 being checked by Travis CI with minimal example

2016-03-19 Thread Richel Bilderbeek
I am working on a minimal example of using Rcpp11 and Travis CI, which I keep at this GiHub: . It has one function that is labeled 'noexcept', thus C++11. I can compile and run the C++11 code from a Qt Creator project file (calle

Re: [Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

2016-03-19 Thread aakremena
Dirk, Thanks for the quick reply. Just to let you know that 1. When I replace Rcout with cout, the nof function is running just fine Why is Rcout messing up? 2. When omp_set_num_threads is explicitly declared before the void nof(int nn_thrds) function, the diagnostic warnin

Re: [Rcpp-devel] OpenMP/Rcpp Error: C stack usage is too close to the limit

2016-03-19 Thread Dirk Eddelbuettel
On 19 March 2016 at 15:48, aakrem...@aol.com wrote: | Dirk, | | Thanks for the quick reply. | | Just to let you know that | 1. When I replace Rcout with cout, the nof function is running just fine | Why is Rcout messing up? | 2. When omp_set_num_threads is explicitly declare

Re: [Rcpp-devel] Rcpp11 being checked by Travis CI with minimal example

2016-03-19 Thread Dirk Eddelbuettel
On 16 March 2016 at 19:25, Richel Bilderbeek wrote: | I am working on a minimal example of using Rcpp11 and Travis CI, which I keep Did you mean Rcpp11? Or did you mean 'Rcpp with C++11'? There are several project of the latter type on CRAN. | at this GiHub: https://github.com/richelbilderbeek/

Re: [Rcpp-devel] Solved: Rcpp11 and Travis CI

2016-03-19 Thread Richel Bilderbeek
- Add 'SystemRequirements: C++11' to your DESCRIPTION file, This was all that was needed! Thanks Kevin! Cheers, Richel Bilderbeek On 16 March 2016 19:31:08 +01:00, Kevin Ushey wrote: > It sounds like you just need to declare that your package depends on > C++11 in the standard way: > > - Add '