Skip to content

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

3 messages · Levi Waldron, Diego Diez, Martin Morgan

#
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

Hope this helps,
Diego
#
On 09/25/2012 09:05 AM, Diego Diez wrote:
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