Re: [R] Rcpp with OpenMP - Need example Makevars

2013-05-24 Thread Asis Hallab
Many thanks to Dirk and Brian! The tips helped me a lot. Kind regards! __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented,

Re: [R] Rcpp with OpenMP - Need example Makevars

2013-05-24 Thread Dirk Eddelbuettel
Hi Asis, On 24 May 2013 at 11:10, Asis Hallab wrote: | Dear R experts, | | recently I started developing a Rcpp package "OpenMPTest". | Within that package I want to use OpenMP, as in the following code example: | | // header file | #include | using namespace Rcpp ; | RcppExport SEXP testOpenM

Re: [R] Rcpp with OpenMP - Need example Makevars

2013-05-24 Thread Prof Brian Ripley
This really is the wrong list: have you looked at the posting guide? The non-Rcpp aspects belong on R-devel. But in short, you cannot control whether the R installation supports OpenMP. 'Writing R Extensions' tells you how to set up Makevars, so the example has already been documented for you

[R] Rcpp with OpenMP - Need example Makevars

2013-05-24 Thread Asis Hallab
Dear R experts, recently I started developing a Rcpp package "OpenMPTest". Within that package I want to use OpenMP, as in the following code example: // header file #include using namespace Rcpp ; RcppExport SEXP testOpenMP( SEXP nThreads ) ; // cpp file SEXP testOpenMP( SEXP nThreads ) { BE