Re: [Rd] How can C++ read the R object written into socket with saveRDS or save

2013-06-26 Thread Simon Urbanek
On Jun 25, 2013, at 11:52 AM, Rong lI Li wrote: > > Hi, all, > > Recently, I met one issue when using socket between R & C++ to transmit R > object. Would you pls help give me some suggestions? Many thanks! > > [Background]: > I create a socket connection between R & C++ binary first, and then,

Re: [Rd] Error on executing functions from installed package

2013-06-26 Thread Kamal
Few more details: clRes object is essentially a list of SummarizedExperiment class object (of GenomicRanges package). Each object is of single chromosome since it is generated by parallelization. I am trying to combine all these object into a single SummarizedExperiment Object. Since we can combin

Re: [Rd] Error on executing functions from installed package

2013-06-26 Thread Kamal
Prof Brian, Thanks for the reply. My mistake its "clRes" in place of "result" > chrcomb <- sapply(clRes, function(x) rbind(x)) Error in rbind(x) : no method for coercing this S4 class to a vector I think what you mentioned about the package forgetting to import an S4 generic for rbind seems the

Re: [Rd] Error on executing functions from installed package

2013-06-26 Thread Prof Brian Ripley
On 26/06/2013 10:56, Kamal wrote: Hi, I am currently building an R package and I am facing a peculiar problem where some of the functions does not work within the package. However, if I source the script the function works. Nothing here is reproducible, so we need to guess. In particular, you

Re: [Rd] compiling R from source with a catch!

2013-06-26 Thread Anwar Ludin
Professor Ripley, Thank your for pointing me in the right direction. I will start by reading the manual ;) >From what I can see the least painful way is still to use a fortran compiler, >so I will try to get my hands on the intel fortran compiler and cross compile >to MIC. Thanks! Anwar On

[Rd] Error on executing functions from installed package

2013-06-26 Thread Kamal
Hi, I am currently building an R package and I am facing a peculiar problem where some of the functions does not work within the package. However, if I source the script the function works. For example, in a method for parallelization of analysis on each chromosome simultaneously I am receiving er

Re: [Rd] compiling R from source with a catch!

2013-06-26 Thread Prof Brian Ripley
On 25/06/2013 22:54, Anwar Ludin wrote: I need to rebuild an R interpreter for the Intel Xeon Phi coprocessor which can be considered as an embedded system. My only option is to use the intel compiler tools and cross compile the interpreter. My first stumbling block is that I don't have a fort

Re: [Rd] Save R Objects in C Code

2013-06-26 Thread Prof Brian Ripley
On 26/06/2013 09:17, Ziqiang Zhao wrote: Dear all, How do I save the R objects in C code? In R code, we use save(x,y,file="F.RData") to save x and y in "F.RData". But what should I do in C? Call that R code (using eval). If you look at the

[Rd] compiling R from source with a catch!

2013-06-26 Thread Anwar Ludin
I need to rebuild an R interpreter for the Intel Xeon Phi coprocessor which can be considered as an embedded system. My only option is to use the intel compiler tools and cross compile the interpreter. My first stumbling block is that I don't have a fortran cross compiler and I would like to kn

[Rd] How can C++ read the R object written into socket with saveRDS or save

2013-06-26 Thread Rong lI Li
Hi, all, Recently, I met one issue when using socket between R & C++ to transmit R object. Would you pls help give me some suggestions? Many thanks! [Background]: I create a socket connection between R & C++ binary first, and then, want to use saveRDS() or save() in R to save the object into con

[Rd] Save R Objects in C Code

2013-06-26 Thread Ziqiang Zhao
Dear all, How do I save the R objects in C code? In R code, we use save(x,y,file="F.RData") to save x and y in "F.RData". But what should I do in C? Ziqiang Zhao 2013-06-26 [[alternative HTML version deleted]]