[Bioc-devel] `as.list` and import `image` warnings

Martin Morgan mtmorgan at fhcrc.org
Tue Sep 25 20:48:13 CEST 2012


On 09/25/2012 09:05 AM, Diego Diez wrote:
> Hi Levi,
>
> I had a similar issue with my package (codelink). The problem was the
> importFrom call in the NAMESPACE file. In my case importFrom(annotate,
> lookUp, htmlpage). I could temporarily avoid the warnings by
> commenting out that line and moving package annotate from Imports to
> Depends in the DESCRIPTION file. However, I imagine it is better to
> solve the original problem which I am not sure where it is. At least
> the following thread seems to be related (although it was supposed to
> be fixed).
>
> https://stat.ethz.ch/pipermail/r-devel/2012-April/063802.html

Please IGNORE the warning

Warning: found methods to import for function "as.list" but not the
generic itself

(possibly with a different method listed).

There are many false positives, and there is a fix (now in R-patched, 
but not in the R used by the build systems or in use by most users).

Diego you are right that the error should be corrected, not the symptom, 
so you do NOT want to comment out the importFrom or change the Depends: 
versus Imports: tag in the DESCRIPTION file.

Martin

>
> Hope this helps,
> Diego
>


-- 
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793



More information about the Bioc-devel mailing list