Re: [Rcpp-devel] Can not build under linux/osx

2014-03-11 Thread Kevin Ushey
Hi Jianyang, I can't replicate your error on Mac OS X or Ubuntu 13.04 (gcc 4.7.3). The package installs successfully for me in each case with latest git revision of Rcpp, and latest CRAN version of RcppEigen (after removing the src-i386 and src-x64 folders and the prebuilt .dll) What version of g

Re: [Rcpp-devel] Can not build under linux/osx

2014-03-11 Thread Jianyang Zhao
Hello Kevin, I guess this is the problem. I just check the server I used and the gcc is 4.4.6-4. Thank you for your help. Jianyang On Tue, Mar 11, 2014 at 4:46 PM, Kevin Ushey wrote: > Hi Jianyang, > > I can't replicate your error on Mac OS X or Ubuntu 13.04 (gcc 4.7.3). > The package install

Re: [Rcpp-devel] OpenMp and IntegerVector

2014-03-11 Thread Hao Ye
> But your threads, > be it pthreads or C++11 threads are not calling the RNG supplied by R, are they? That is correct. Just reading and writing to c++ vectors (with some non-R deterministic computations in-between) Best, -- Hao Ye h...@ucsd.edu On Mar 11, 2014, at 1:15 PM, Dirk Eddelbuettel wr

Re: [Rcpp-devel] Can not build under linux/osx

2014-03-11 Thread Jianyang Zhao
Hello Kevin, I use the least version Rcpp and RcppEigen. The github link is at https://github.com/uzhao/PACE Thanks, JIanyang On Tue, Mar 11, 2014 at 1:36 PM, Kevin Ushey wrote: > Hi Jianyang, > > If you are willing to put your package on GitHub or somewhere else > publicly accessible, I ca

Re: [Rcpp-devel] Can not build under linux/osx

2014-03-11 Thread Kevin Ushey
Hi Jianyang, If you are willing to put your package on GitHub or somewhere else publicly accessible, I can take a closer look. My best guess, from your compiler output, is you're trying to construct a vector from a proxy, and the compiler can't figure out what constructor to call. You might want

Re: [Rcpp-devel] OpenMp and IntegerVector

2014-03-11 Thread Whit Armstrong
you can also use intel TBB, just depends on your preference for syntax I suppose. I've never tried to use openMP threads, but intel tbb works quite nicely. example here based off of rrcov package: https://github.com/armstrtw/rrcov/blob/master/src/covOPW.cpp#L58 Sorry, Dirk, this doesn't use Rcpp

[Rcpp-devel] Can not build under linux/osx

2014-03-11 Thread Jianyang Zhao
Hello All, I'm writing a package which is able to build under windows. But when I try to build it under linux, I got this error message. (hilbert)-PACE$ R CMD INSTALL . * installing to library '/home/uzhao/R/x86_64-unknown-linux-gnu-library/3.0' * installing *source* package 'PACE' ... ** libs g+

Re: [Rcpp-devel] OpenMp and IntegerVector

2014-03-11 Thread Dirk Eddelbuettel
On 11 March 2014 at 13:06, Hao Ye wrote: | > Just accessing / setting data structures should work (but test first...), | > RNGs is clearly asking for trouble. | | FWIW, I've been able to get this working using Rcpp and C++11 threads. (but using native C++ data structures, of course) Sure, just

Re: [Rcpp-devel] OpenMp and IntegerVector

2014-03-11 Thread Hao Ye
> Just accessing / setting data structures should work (but test first...), > RNGs is clearly asking for trouble. FWIW, I've been able to get this working using Rcpp and C++11 threads. (but using native C++ data structures, of course) Best, -- Hao Ye h...@ucsd.edu On Mar 11, 2014, at 12:56 PM,

Re: [Rcpp-devel] OpenMp and IntegerVector

2014-03-11 Thread Dirk Eddelbuettel
Andreas, On 11 March 2014 at 20:30, Andreas Prescher wrote: | Hello, | | I got strange behaviour when using | OpenMp and IntegerVector (without | OpenMp all works fine!!) | | From my package (Rcpp 0.10.4 used, let some unimportant | arguments out) | | Rcpp::List PsiMinRContainer::parInit(cons

[Rcpp-devel] OpenMp and IntegerVector

2014-03-11 Thread Andreas Prescher
Hello, I got strange behaviour when using OpenMp and IntegerVector (without OpenMp all works fine!!) From my package (Rcpp 0.10.4 used, let some unimportant arguments out) Rcpp::List PsiMinRContainer::parInit(const Rcpp::List& seedList) { Rcpp::List resultList(m_psiMinRVec.size() - 1);

[Rcpp-devel] Issue on eig_sym()

2014-03-11 Thread Tiago Fragoso
Hello all,. I am running into the following issue on eig_sym() when using RcppArmadillo: error: eig_sym(): failed to converge error: matrix multiplication: incompatible matrix dimensions: 0x0 and 108x1 It occurs somewhat at random (this time, I had the surprise around iteration 10^6), mostly w

Re: [Rcpp-devel] What is /usr/bin/r ?

2014-03-11 Thread Dirk Eddelbuettel
On 10 March 2014 at 15:57, Mike Willis wrote: | | > Just because you see a shebang should not imply a depend. | > | > Can you share the exact error, please? | | | When I try to install my rpm package I get | | Problem: This request will break your system! |nothing provides /usr/bin/r neede