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

2013-06-27 Thread Hervé Pagès
Hi Kamal, Sounds like a Bioconductor question. Would be better to ask on the Bioc-devel mailing list. See you there. Cheers, H. On 06/26/2013 07:37 AM, Kamal wrote: Few more details: clRes object is essentially a list of SummarizedExperiment class object (of GenomicRanges package). Each obje

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

2013-06-27 Thread Henrik Singmann
Hi Kamal, I suspect this to be because you did not load the package on each core so the S4 definitions are not available there. The solution would be to specifically load the library at each core prior to calling clusterApplyLB. (I vaguely remember once having a similar problem where something

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

[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