Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Dirk Eddelbuettel
On 18 November 2012 at 15:25, Thell Fowler wrote: | Is there some kind of a stance against 'auto'? For the CRAN gatekeepers, '-std=c++0x' and '-std=c++11' are considered non-portable. We simply have to wait til this becomes a) the g++ default and b) that that g++ version because the default inst

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Dirk Eddelbuettel
On 18 November 2012 at 21:17, Romain Francois wrote: | You don't need to wrap an "Rcpp::S4", as these are already R objects, so | an implicit conversion to SEXP already exists. | | Same here: | | vS4.slot("exp") = wrap( exp ); | | you don't need this wrap, you should be able to just use: | |

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
On Sun, Nov 18, 2012 at 2:17 PM, Romain Francois wrote: > Hello, > > You don't need to wrap an "Rcpp::S4", as these are already R objects, so > an implicit conversion to SEXP already exists. > > Same here: > > > vS4.slot("exp") = wrap( exp ); > > you don't need this wrap, you should be able to jus

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Romain Francois
Hello, You don't need to wrap an "Rcpp::S4", as these are already R objects, so an implicit conversion to SEXP already exists. Same here: vS4.slot("exp") = wrap( exp ); you don't need this wrap, you should be able to just use: vS4.slot("exp") = exp ; for the same reason, exp is already an

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Dirk Eddelbuettel
Hi Thell, On 18 November 2012 at 13:03, Thell Fowler wrote: | Hi all. | | I've been doing some testing on how to get arbitrary precision numbers out of | c++ and into R.  The following example inline Rcpp code generates an RcppMpfr | cxxfunction plugin for wrapping to the Rmpfr S4 "mpfr1" objec

Re: [Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
Forgot to mention I don't have access to 64bit at the moment, so that hasn't been tested at all, and just the 32bit stuff has been played with. ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/

[Rcpp-devel] Rcpp RMpfr mpreal to mpfr wrapping

2012-11-18 Thread Thell Fowler
Hi all. I've been doing some testing on how to get arbitrary precision numbers out of c++ and into R. The following example inline Rcpp code generates an RcppMpfr cxxfunction plugin for wrapping to the Rmpfr S4 "mpfr1" object. There are local include paths that need adjusting (for now) to your