Re: [Bioc-devel] edgeR estimateGLMRobustDisp Fails when Called From A Package

2014-06-27 Thread Gordon K Smyth
edgeR knows about LargeDataObject. It's your package that doesn't. Gordon On Fri, 27 Jun 2014, Dario Strbenac wrote: Hello, I never explicitly use that class in my function. I did debugging and realised what the problem is. DGEList is part of class hierarchy and it inherits from the

Re: [Bioc-devel] edgeR estimateGLMRobustDisp Fails when Called From A Package

2014-06-27 Thread Dario Strbenac
Hello, My package doesn't ever explicitly call LargeDataObject, so I don't think it should have to explicitly import it. I am also confused by the advice that Depends is preferable to Imports. I read in Writing R Extensions that Packages whose namespace only is needed to load the package

Re: [Bioc-devel] edgeR estimateGLMRobustDisp Fails when Called From A Package

2014-06-26 Thread James W. MacDonald
Hi Dario, Isn't an easier fix to simply add ImportFrom(limma, loessFit) in your NAMESPACE file? Best, Jim On 6/26/2014 12:00 AM, Dario Strbenac wrote: Hello, I am writing a package that has a function that uses estimateGLMRobustDisp, leading to an error : Error in dispBinTrend(y,

[Bioc-devel] edgeR estimateGLMRobustDisp Fails when Called From A Package

2014-06-26 Thread Gordon K Smyth
Date: Thu, 26 Jun 2014 04:00:11 + From: Dario Strbenac dstr7...@uni.sydney.edu.au To: bioc-devel@r-project.org bioc-devel@r-project.org Subject: [Bioc-devel] edgeR estimateGLMRobustDisp Fails when Called From A Package Hello, I am writing a package that has a function that uses