Re: [Rcpp-devel] Are there any C++ function name restrictions?

2013-05-29 Thread Chris Jefferson
On 29/05/13 14:20, Asis Hallab wrote: Dear Rcpp Experts, hopefully this question of mine is not too stupid. Well, I am a greenhorn with Rcpp and my C/C++ expertise is quite dusty. I generated a new Rccp package and changed the hello_world function. The attached Rcpp Code stops working if I ren

Re: [Rcpp-devel] Mersenne Twister in RcppArmadillo?

2013-02-11 Thread Chris Jefferson
On 11/02/13 10:23, c s wrote: On Sun, Feb 10, 2013 at 12:32 AM, Yan Zhou wrote: To have Armadillo randn use MT19937 is not easy. Since it use srand() for seed, I guess it also use C rand(), whose quality is quite questionable. The quality of the rand() function from C depends on the implementa

Re: [Rcpp-devel] Formatting Fixed - Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Chris Jefferson
On 19/11/12 18:58, Thell Fowler wrote: Chris, On Mon, Nov 19, 2012 at 12:40 PM, Chris Jefferson mailto:ch...@bubblescope.net>> wrote: On 19/11/12 17:33, Thell Fowler wrote: /home/thell/R/library/Rcpp/include/Rcpp/sugar/sets.h:28:2: error: invalid preproc

Re: [Rcpp-devel] Formatting Fixed - Clang 3.0 and 3.3 errors on sugar/set.h

2012-11-19 Thread Chris Jefferson
On 19/11/12 17:33, Thell Fowler wrote: /home/thell/R/library/Rcpp/include/Rcpp/sugar/sets.h:28:2: error: invalid preprocessing directive #elseif defined(HAS_TR1_UNORDERED_SET) Without looking any deeper at this (sorry), clang doesn't not accept elseif, it requires elif. gcc actually doesn't

Re: [Rcpp-devel] Running RcppArmadillo on Mac OS X 10.7

2012-06-14 Thread Chris Jefferson
ssage- From: rcpp-devel-boun...@lists.r-forge.r-project.org [mailto:rcpp-devel-boun...@lists.r-forge.r-project.org] On Behalf Of Chris Jefferson Sent: Wednesday, June 13, 2012 1:36 PM To: Michael Hannon Cc: Rcpp-devel@lists.r-forge.r-project.org Subject: Re: [Rcpp-devel] Running RcppArmadillo on M

Re: [Rcpp-devel] Running RcppArmadillo on Mac OS X 10.7

2012-06-13 Thread Chris Jefferson
On 13/06/12 18:34, Michael Hannon wrote: Chris Jefferson wrote: I have been successfully using Rcpp for a while, and recently started trying to use RcppArmadillo. I found it worked fine on linux, but on Mac OS X 10.7, it fails. . . . The udnerlying error seems to be that I do not have

[Rcpp-devel] Running RcppArmadillo on Mac OS X 10.7

2012-06-13 Thread Chris Jefferson
I have been successfully using Rcpp for a while, and recently started trying to use RcppArmadillo. I found it worked fine on linux, but on Mac OS X 10.7, it fails. Even the trivial example below fails, with the errors shown at the bottom. library(inline) f = cxxfunction(signature(x="numeric"), ";