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 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: Friday, May 08, 2020 11:04 AM
To: bioc-devel@r-project.org
Subject: [Bioc-devel] How to import a setAs method in one's package?

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]]

_______________________________________________
Bioc-devel@r-project.org mailing list
https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_bioc-2Ddevel&d=DwIFAg&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=GvFB77RR45gI9MsOLDdWB-TapO-hwYBrAw1bBNVzTFE&s=ClOtwGLvXVUdxZgwOVZBOEaLrAvVEEa6rjOE5uzPyGM&e=

_______________________________________________
Bioc-devel@r-project.org mailing list
https://urldefense.proofpoint.com/v2/url?u=https-3A__stat.ethz.ch_mailman_listinfo_bioc-2Ddevel&d=DwIFAg&c=eRAMFD45gAfqt84VtBcfhQ&r=BK7q3XeAvimeWdGbWY_wJYbW0WYiZvSXAJJKaaPhzWA&m=GvFB77RR45gI9MsOLDdWB-TapO-hwYBrAw1bBNVzTFE&s=ClOtwGLvXVUdxZgwOVZBOEaLrAvVEEa6rjOE5uzPyGM&e=


--
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpa...@fredhutch.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to