Thankyou guys for your quick and helpful feedback!
Aditya
From: Michael Lawrence [lawrence.mich...@gene.com]
Sent: Friday, May 08, 2020 7:35 PM
To: Bhagwat, Aditya
Cc: bioc-devel@r-project.org
Subject: Re: [Bioc-devel] How to import a setAs method in one's
setAs() defines methods on the coerce() generic, so you could write
importMethodsFrom(pkg, coerce). However, as() searches the namespace
associated with class(from) for coerce() methods. As long as that
namespace hasn't selectively imported methods on coerce(), it should
end up using the global
Hi Aditya,
It is very hard to get selective imports from the methods package right
and there is no real benefit in doing so. I would strongly recommend
that you just import its full namespace with:
import(methods)
Best,
H.
On 5/8/20 02:48, Bhagwat, Aditya wrote:
Looks like this can be
Looks like this can be successfully done by
@importFrom methods as
@importFrom S4Vectors DataFrame
Cheers,
Aditya
From: Bioc-devel [bioc-devel-boun...@r-project.org] on behalf of Bhagwat,
Aditya [aditya.bhag...@mpi-bn.mpg.de]
Sent:
Dear BioC compatriots,
How does one import a setAs method (which is generally not exported)?
I in particular need to import as(., DataFrame) and am a bit puzzled on how to
do this.
Thank you!
Aditya
[[alternative HTML version deleted]]
___