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 usin

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

2014-06-26 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 supe

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

2014-06-26 Thread Dario Strbenac
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 superclass LargeDataObject > showClass("DGEList") Class "DGEList" [package "edgeR"] Slots: Name: .Data Class: li

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

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

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

2014-06-26 Thread Dario Strbenac
From: Gordon K Smyth Sent: Friday, 27 June 2014 9:32 AM To: Dario Strbenac Cc: bioc-devel@r-project.org Subject: edgeR estimateGLMRobustDisp Fails when Called From A Package > Date: Thu, 26 Jun 2014 04:00:11 +0000 > From: Dario Strbenac > To: "bioc-devel@r

[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 To: "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 estimateGLMRobustDisp, leading t

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, design,

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

2014-06-25 Thread Dario Strbenac
Hello, I am writing a package that has a function that uses estimateGLMRobustDisp, leading to an error : Error in dispBinTrend(y, design, offset = offset, method.trend = "loess", : could not find function "loessFit" Calls: edgeRselection ... estimateGLMTrendedDisp -> estimateGLMTrendedDisp.