[Bioc-devel] Importing generic functions from other pkgs and defining methods on them?

Benilton Carvalho bcarvalh at jhsph.edu
Fri Mar 9 11:35:33 CET 2007


Sorry for not providing a reproducible example.

After a couple of days, I finally noticed that generic functions are  
not defined for ncol/nrow and that was what the problem for "image"  
to work for me (as I also define methods for both and naively assumed  
they were had generics).

b

On Mar 9, 2007, at 1:45 AM, Seth Falcon wrote:

> Benilton Carvalho <bcarvalh at jhsph.edu> writes:
>
>> Since we're on this topic... that reminds me a problem I've been
>> trying to solve in the last days.
>>
>> I have an "image" method (S4), which doesn't work when I build/
>> install the package... But it does work if I source the file that
>> defines the method (after loading the just-built package).
>>
>> Any chance this would be somewhat similar/related to what Wolfgang
>> described?
>
> Yes.
>
>
>
> But without a bit more detail that's all I could say.
>
> So in oligo there is an image method, but it seems to work (dispatch)
> fine for me after installing oligo.  For example:
>
> library(oligo)
>> ff = new("FeatureSet")
>> image(ff)
> Error in if (tolower(manufacturer(x)) == "affymetrix") { :
>         argument is of length zero
>>
>
>
> + seth
>
> -- 
> Seth Falcon | Computational Biology | Fred Hutchinson Cancer  
> Research Center
> http://bioconductor.org
>
> _______________________________________________
> Bioc-devel at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel



More information about the Bioc-devel mailing list