[Rcpp-devel] Help for call R function

2012-06-15 Thread bbo...@tin.it
Hello to everyboby Im Gianluca and i m a statistic student. I have one problem that i think Dirk or some one "good like dirk" could help to resolve : iI would like to implement this following function in R code into inline code with Rccp plugin : MHWG<-function (logpost, start, n.i

[Rcpp-devel] Call R function

2012-06-19 Thread bbo...@tin.it
Hello i would like to compute the following code ; Where R_user_F is a R function (i could write this function directly inin line but is only for example because i want to call an R function more complex): so when compile appear this error message: error: "cannot convert 'Rcpp::sugar::Compar

[Rcpp-devel] Pointer Problem ?

2012-06-22 Thread bbo...@tin.it
i have another problem maby cause by my inexperience in the following code in Rccp inline in the middle of the double cicle (just after ... for (j=0; j(start); int n=Rf_length(start_); int N = as(nsim); NumericVector tune = as(scale); NumericMatrix U(N,n); NumericVector init (n); NumericVec

[Rcpp-devel] "=" work in mathematical mode (if th0=th1 then th1=th0 and viceversa) not in"informatical mode (assigment) like i want ..WHY??

2012-06-24 Thread bbo...@tin.it
sorry for my stupid questions but the question is one : im ignorant but i know some one could help me. Why This appen? pay attention please for the following code. In this there is a loop for (int k=0; k(start); int n=Rf_length(start_); int N = as(nsim); NumericVector tune = as(scale);

[Rcpp-devel] RcppProgress with RcppArmadillo

2013-08-02 Thread bbo...@tin.it
Dear list, I have a problem: i wold like to build up a package that use both RccpArmadillo and Rcppprogress together following instruction on RcppProgress manual where the author's suggest how to include the correct flags and libs and descriprion (linking and depends) for include a progr

[Rcpp-devel] RcppProgress RcppArmadillo

2013-08-13 Thread bbo...@tin.it
Dear list good morning, can someone explain why the compiler return me an error when I add the following include #include (without this inclusion the code is compiled in correct way) (using // [[Rcpp::depends(Rcpp,RcppArmadillo,RcppProgress)]] for dependencies) the example code (using attri

[Rcpp-devel] Call C++ Function into R function called in Rcpp

2015-01-04 Thread bbo...@tin.it
Dear list first of all happy new year. I have a question .. I would like to call rcpp function (so c++ function) into R function (optim for example) called into rcpp. I had prototype an example code and post below. (Using Rcpp::InternalFunction(&foo)) Is it correct the way I had used? There i

[Rcpp-devel] Call ++ funtion into R function called in rcpp

2015-01-04 Thread bbo...@tin.it
Dear list first of all happy new year. I have a question .. I would like to call rcpp function (so c++ function) into R function (optim for example) called into rcpp. I had prototype an example code and post below. (Using Rcpp::InternalFunction(&foo)) Is it correct the way I had used? There i