[Rcpp-devel] Help on compilation of Rcpp and RInside

2011-04-06 Thread deqiang sun
Hi all, Could someone help me on compilation of the RInside/inst/examples/standard/rinside_sample0.cpp. This example is the project Rinside0 created by eclipse. And here is the error message for build. Build of configuration Debug for project Rinside0 make all Building file: ../src/

[Rcpp-devel] Help on compilation of Rcpp and RInside

2011-04-07 Thread deqiang sun
Hi all, Could someone help me on compilation of the RInside/inst/examples/standard/rinside_sample0.cpp. This example is the project Rinside0 created by eclipse. And here is the error message for build. Build of configuration Debug for project Rinside0 make all Building file: ../src/

Re: [Rcpp-devel] Help on compilation of Rcpp and RInside

2011-04-07 Thread deqiang sun
R to avoid the embeded R interpreter error. By the way, I posted twice because I did not receive the email I sent and thought it is failed to mail out. Of couse, I then found out I was on the digest mode. Best regards, Deqiang Sun On Apr 7, 2011, at 6:55 AM, Dirk Eddelbuettel wrote: > &

[Rcpp-devel] data.frame from R to C++?

2011-04-07 Thread deqiang sun
Hi all, Suppose I want to read a csv file including TEXT and NUMBER fields in R by function read.table. Is there a way to use the result in C++? Like the way I use in R, say, 2nd column is x[,2], 3rd row is x[3,]. I have gone through the examples in RInside and did not find anything helpful. P

Re: [Rcpp-devel] data.frame from R to C++?

2011-04-12 Thread deqiang sun
Hi Dirk, Thanks very much for your example. From this example I learned how to passing data back and forth between R and C++. The example is R code and uses piece of C++ code in side R program. Well, it's better if you put this example(by only making slight changes to make R embeded in C++) in

Re: [Rcpp-devel] data.frame from R to C++?

2011-04-12 Thread deqiang sun
I agree I realized the row is usually mixed of numbers and texts. On Apr 12, 2011, at 4:14 AM, Romain Francois wrote: > Le 12/04/11 10:57, deqiang sun a écrit : >> Hi Dirk, >> >> Thanks very much for your example. From this example I learned how to >> passing data bac

Re: [Rcpp-devel] data.frame from R to C++?

2011-04-12 Thread deqiang sun
ode? Thanks, Dsun On Apr 12, 2011, at 4:14 AM, Romain Francois wrote: > Le 12/04/11 10:57, deqiang sun a écrit : >> Hi Dirk, >> >> Thanks very much for your example. From this example I learned how to >> passing data back and forth between R and C++. >> The example is R

Re: [Rcpp-devel] data.frame from R to C++?

2011-04-12 Thread deqiang sun
Thanks, the stringsAsFactors=FALSE option works. Dsun On Apr 12, 2011, at 6:36 AM, Dirk Eddelbuettel wrote: > > On 12 April 2011 at 05:38, deqiang sun wrote: > | How should I read the txt in the following context? > | c3 3a > | c1 1b > | c2 2c > | &

[Rcpp-devel] weird error

2011-05-05 Thread deqiang sun
Does any one encounter such error? $ ./rinside_example0 Error: cons memory exhausted (limit reached?) Execution halted The code is just rinside_example0.cpp. The make file is just the original Make file with the line "sources := $(wildcard *.cpp)" replaced by "sources = rinside_exa

Re: [Rcpp-devel] weird error

2011-05-05 Thread deqiang sun
d new directory, the code starts to work again. It's weird... On May 5, 2011, at 7:33 PM, deqiang sun wrote: > Well, I moved the rinside_example0.cpp and makefile to a brand new directory. > There is no error! > > On May 5, 2011, at 7:21 PM, deqiang sun wrote: > &

Re: [Rcpp-devel] weird error

2011-07-09 Thread deqiang sun
21 .RData .cproject .nfs0035eb5a0022 .Rhistory OK without hidden files: [deqiangs@weili-sandbox methComp]$ ./Rinside0 Hello, world! Never mind if this does not help. On May 5, 2011, at 8:56 PM, Dirk Eddelbuettel wrote: > > On 5 May 2011

[Rcpp-devel] How to add Rccp to a configure script

2011-12-12 Thread deqiang sun
Hi Rcpp team, I made some modification to a open source program which uses configure for installation. I can manually write a make file to compile the original program plus Rcpp and RInside modifications. I am wondering whether you can help add auto configuration. The program is at http://cuff