Re: [Rcpp-devel] RcppArmadillo and 'trunc' problem (fixed)

2012-05-30 Thread Dirk Eddelbuettel
On 30 May 2012 at 13:11, alexios ghalanos wrote: | ok, I found the problem...somewhere in the package I had an # include | Rmath.h which once I commented out, it builds without problems. Yes, that happens -- header inclusion is complicated, and it generally just works using Rcpp.h. | Sorry

Re: [Rcpp-devel] RcppArmadillo and 'trunc' problem (fixed)

2012-05-30 Thread alexios ghalanos
ok, I found the problem...somewhere in the package I had an # include Rmath.h which once I commented out, it builds without problems. Sorry for the bother. Regards, Alexios On 30/05/2012 12:38, Dirk Eddelbuettel wrote: Hi Alexios, On 30 May 2012 at 12:00, alexios ghalanos wrote: | Hi, | |

Re: [Rcpp-devel] RcppArmadillo and 'trunc' problem

2012-05-30 Thread alexios ghalanos
Thanks Dirk. When I run it inline I have not problem: library(RcppArmadillo) library(inline) # The function draws a vector of random deviates from the multivariate # Laplace of Kotz (zero mean) given a correlation matrix R. fx <- cxxfunction( signature(R = "matrix", Z = "numeric" ) , ' Rcpp::Nu

Re: [Rcpp-devel] RcppArmadillo and 'trunc' problem

2012-05-30 Thread Dirk Eddelbuettel
Hi Alexios, On 30 May 2012 at 12:00, alexios ghalanos wrote: | Hi, | | While writing some extra functions into the rmgarch package (on r-forge) | which uses RcppArmadillo, I encountered the error relating to 'trunc' | and 'ftrunc' already discussed here: | | http://lists.r-forge.r-project.or

[Rcpp-devel] RcppArmadillo and 'trunc' problem

2012-05-30 Thread alexios ghalanos
Hi, While writing some extra functions into the rmgarch package (on r-forge) which uses RcppArmadillo, I encountered the error relating to 'trunc' and 'ftrunc' already discussed here: http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2010-September/001123.html This occurred for the fir