Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-04 Thread Dirk Eddelbuettel
On 4 January 2016 at 14:21, Pierre Lafaye de Micheaux wrote: | R, or with what I know about .Call()) that this is possible in a simple | way with .C(). Please stop abusing this Rcpp mailing list a platform for youe .C() gospel. Every single developer whose opinion I value has come out swinging

Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-04 Thread Pierre Lafaye de Micheaux
Dear Dirk, I understand that you do not want to spend too much time on this. And I thank you for the time you already spent fr this specific question, and also on others in the past. As far as I am concerned, I was just trying, spending as less time as possible, to make two of my packages wor

Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-04 Thread Dirk Eddelbuettel
Baptiste, You and I started RcppFaddeeva following this thread of yours on SO http://stackoverflow.com/a/30677939/143305 where you had basic troubles creating an R package. So that got solved, and RcppFaddeeva is on CRAN etc. We never set it up to export headers. Doing so is trivial, but tha

Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-04 Thread Baptiste Auguie
On 4 January 2016 at 21:14, Pierre Lafaye de Micheaux < laf...@dms.umontreal.ca> wrote: > Dear all, > > Thanks again for your answers. > > For one of my project, I indeed need the special complex error functions. > This is why I used the RcppFaddeeva source files in the first time. > That's usefu

Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-04 Thread Pierre Lafaye de Micheaux
Dear all, Thanks again for your answers. For one of my project, I indeed need the special complex error functions. This is why I used the RcppFaddeeva source files in the first time. This being said, it was ALSO a workaround to get access to complex numbers operations (and so that the package

Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-03 Thread Dirk Eddelbuettel
On 4 January 2016 at 09:50, Baptiste Auguie wrote: | Hi, | | Just to clarify: did you include files from RcppFaddeeva because you need some | of its functionality (special complex error functions), or was it only a | workaround to get access to complex numbers? In the latter case, I recommend | y

Re: [Rcpp-devel] Using complex numbers in a C program called by R

2016-01-03 Thread Baptiste Auguie
Hi, Just to clarify: did you include files from RcppFaddeeva because you need some of its functionality (special complex error functions), or was it only a workaround to get access to complex numbers? In the latter case, I recommend you try making a minimal Rcpp package to see how easy it is to in

[Rcpp-devel] Using complex numbers in a C program called by R

2016-01-03 Thread Pierre Lafaye de Micheaux
Dear all, This email comes after a discussion on the R-pkg-devel mailing list: https://stat.ethz.ch/pipermail/r-package-devel/2016q1/000627.html My purpose was to be able, in two of my packages, to use complex numbers (create some, addition, multiplication, division, modulus, etc) directly in