Re: [Rcpp-devel] R - couchbase R client using Rcpp

2014-03-18 Thread contact AG STUDY
Dirk, Thanks for your help. I will get a closer look at rhiredis package. Amine GASSEM For the mail I agree it is better to have my fisrt/last name. The problem I am using my professional mail. I will see if I can create an alias to this one with a proper identifiable name. On Tue, Mar 18, 2

Re: [Rcpp-devel] R - couchbase R client using Rcpp

2014-03-18 Thread Dirk Eddelbuettel
Amine, On 18 March 2014 at 17:56, contact AG STUDY wrote: | I would like to use to create an R client for couchbase. ( let me know if there | is already an existing package) | My idea is to create a new R package based on the c library libcouchbase.  | This is what is already done for other wrap

[Rcpp-devel] R - couchbase R client using Rcpp

2014-03-18 Thread contact AG STUDY
Hi every body , I would like to use to create an R client for couchbase. ( let me know if there is already an existing package) My idea is to create a new R package based on the c library libcouchbase . This is what is already done for other wrappers in p

Re: [Rcpp-devel] question from a novice

2014-03-18 Thread Søren Højsgaard
Don't know, but the code below seems to work. Cheers Søren #include/* log */ #include using namespace Rcpp; // [[Rcpp::export]] double LRTrow(IntegerVector x) { LogicalVector z = x>0; IntegerVector y = x[z]; double lrtc = sum(y); if (lrtc>0) lrtc = - lrtc*log(lrtc); for (int i=

Re: [Rcpp-devel] Building shared libs with Rcpp does not work as before after Debian update

2014-03-18 Thread Dirk Eddelbuettel
Andreas, On 18 March 2014 at 15:45, Andreas Recke wrote: | maybe I can add some more details about my problem. It has been | addressed before at stackoverflow: | | http://stackoverflow.com/questions/21657575/what-does-this-mean-in-lme4-function-dataptr-not-provided-by-package-rcpp Yes, I also

[Rcpp-devel] question from a novice

2014-03-18 Thread David Edwards
Sorry to bother you with a novice question, but I can't figure out why, when I try to sourceCpp (with verbose=TRUE) the code #include/* log */ #include using namespace Rcpp; // [[Rcpp::export]] double LRTrow(IntegerVector x) { IntegerVector y; y = x[x>0]; double lrtc = sum(y); i

Re: [Rcpp-devel] Building shared libs with Rcpp does not work as before after Debian update

2014-03-18 Thread Andreas Recke
Hi, maybe I can add some more details about my problem. It has been addressed before at stackoverflow: http://stackoverflow.com/questions/21657575/what-does-this-mean-in-lme4-function-dataptr-not-provided-by-package-rcpp with the question: "I'm trying to do LMM using lme4, and this message pops

Re: [Rcpp-devel] Building shared libs with Rcpp does not work as before after Debian update

2014-03-18 Thread Dirk Eddelbuettel
On 18 March 2014 at 11:43, Andreas Recke wrote: | I would like to have at least the option to use the command line to | compile my code and to have it working even with different | versions of R and Rcpp, especially because I found a way to use the | THRUST library for parallel computing with Rcpp

Re: [Rcpp-devel] Building shared libs with Rcpp does not work as before after Debian update

2014-03-18 Thread Dirk Eddelbuettel
On 18 March 2014 at 11:43, Andreas Recke wrote: | * in R console | | >dyn.load("test.so") | >.Call("norm_wrapper", x_=2, y_=3) | | and I get the error message, that function "dataptr" is not provided by | package "Rcpp" ... As documented in the release notes for Rcp

[Rcpp-devel] Building shared libs with Rcpp does not work as before after Debian update

2014-03-18 Thread Andreas Recke
Hi, until recently, I used a very simple mechanism to compile and link my C++/Rcpp/RcppArmadillo code for using it in R. Since the last update, however, something has changed with the linking, and the Rcpp shared library is not linked to the final libary as before. My question is, whether I need t

Re: [Rcpp-devel] Bug or intended behaviour?

2014-03-18 Thread Søren Højsgaard
Ops; just realised that I did not allocate memory inside the loop; now it works: // [[Rcpp::export]] List do_colmat2list_str(SEXP XX_) { CharacterMatrix X(XX_); int nc=X.ncol(), nr=X.nrow(), k; List out(nc); for (int j=0; jmailto:rcpp-devel-boun...@lists.r-forge.r-project.org] On Beha