Re: [Rcpp-devel] 64-bit libRcpp.a on 32-bit MacOS

2010-08-26 Thread Davor Cubranic
Try R CMD INSTALL --help: --configure-args=ARGS set arguments for the configure scripts (if any) --configure-vars=VARS set variables for the configure scripts (if any) But why install just this library as 64-bit if the rest of your R ins

Re: [Rcpp-devel] 64-bit libRcpp.a on 32-bit MacOS

2010-08-26 Thread Dan Kulp
I should be able to build a 64-bit binary on this OS. R CMD INSTALL however uses -arch i386 by default.. would you know how to send compile flags to the R CMD INSTALL system? Thanks, Dan On Thu, Aug 26, 2010 at 9:38 AM, Dirk Eddelbuettel wrote: > > On 26 August 2010 at 09:16, Dan Kulp wrote:

Re: [Rcpp-devel] 64-bit libRcpp.a on 32-bit MacOS

2010-08-26 Thread Dirk Eddelbuettel
On 26 August 2010 at 09:16, Dan Kulp wrote: | Hello, | I was wondering what the simplest route to building a 64-bit libRcpp.a | library, when running 10.5.8 32-bit. ( sysctl hw.cpu64bit_capable returns 1 | ). R CMD INSTALL Rcpp_.tar.gz installs a 32-bit library (I think). I | tried lookin

[Rcpp-devel] 64-bit libRcpp.a on 32-bit MacOS

2010-08-26 Thread Dan Kulp
Hello, I was wondering what the simplest route to building a 64-bit libRcpp.a library, when running 10.5.8 32-bit. ( sysctl hw.cpu64bit_capable returns 1 ). R CMD INSTALL Rcpp_.tar.gz installs a 32-bit library (I think). I tried looking into the source, but didn't see a configure or Makefi

Re: [Rcpp-devel] [RcppExamples] -- would someone share the makefile?

2010-08-26 Thread Romain Francois
Hi, This is precisely because getting these bits is somewhat involved that we provide Rcpp.package.skeleton. Once the package is generated by it, you just have to modify the .cpp and .h files to do whatever you want to do, as long as you respect the requirements of the .Call interface. The R

Re: [Rcpp-devel] Filling NumericMatrix with NumericVectors with apply by row/column?

2010-08-26 Thread Romain Francois
Hello, There currently is no sugar facility to generate a matrix the way you want. The last option is probably the best thing to do for now. Perhaps outer can help you : NumericVector xx(x) ; NumericVector yy(y); NumericMatrix m = outer( xx, yy, std::plus() ) ; return m ; Romain Le 21/08/10

Re: [Rcpp-devel] On mailing list defaults, and suggested patch submission

2010-08-26 Thread Dominick Samperi
On Sat, Aug 21, 2010 at 2:40 PM, Romain Francois wrote: > Not that I care, but I'm slightly surprised at the implementation of log1p > : > specifically that it throws an exception > Romain I changed the code in msvcmath.cpp to return non-signalling NaN when there is a problem instead of throwing

Re: [Rcpp-devel] On mailing list defaults, and suggested patch submission

2010-08-26 Thread romain
Le 24 août 2010 à 17:58, Dominick Samperi a écrit : > > > On Sat, Aug 21, 2010 at 2:40 PM, Romain Francois > wrote: > Not that I care, but I'm slightly surprised at the implementation of log1p : > specifically that it throws an exception > Romain > > I changed the code in msvcmath.cpp to re

Re: [Rcpp-devel] [RcppExamples] -- would someone share the makefile?

2010-08-26 Thread Davor Cubranic
On 2010-08-21, at 1:30 PM, Johannes Egner wrote: > Now using Rcpp.package.skeleton is indeed a step forward -- it passes R CMD, > becomes a tarball, and I can build a zip file with the DLL in it. (Which > correctly exposes the function rcpp_hello_world). It seems R CMD build > miraculously know

Re: [Rcpp-devel] On mailing list defaults, and suggested patch submission

2010-08-26 Thread Dominick Samperi
There appears to be a problem with the svn server (R-Forge). When I try to update (or checkout) I get: svn: Can't find a temporary directory: Internal error >From what I could find on the Internet this is a server problem. Perhaps they are doing maintenance of some kind... On Sat, Aug 21, 2010