Skip to content
Prev 25189 / 63424 Next

[Bioc-devel] promptClass

promptClass fails to identify methods associated with the class. Here
is a fix:

Index: promptClass.R
===================================================================
--- promptClass.R       (revision 41719)
+++ promptClass.R       (working copy)
@@ -165,7 +165,7 @@
     if (nmeths > 0) {
        .meths.body <- "  \\describe{"
        for (i in 1:nmeths) {
-           .sigmat <- sigsList(methnms[i], where)
+           .sigmat <- sigsList(methnms[i], where=whereClass)
            for (j in seq_along(.sigmat)) {
                if (!all(is.na(match(.sigmat[[j]],clName)))) {
                    methn.i <- escape(methnms[i])
Index: RMethodUtils.R
===================================================================
--- RMethodUtils.R      (revision 41719)
+++ RMethodUtils.R      (working copy)
@@ -621,7 +621,7 @@
 getMethodsMetaData <-
   ## get the methods meta-data for function f on database where
   function(f, where = topenv(parent.frame())) {
-        mname <- mlistMetaName(f, where)
+        mname <- mlistMetaName(f, getPackageName(where))
         if(exists(mname, where = where, inherits = missing(where)))
             get(mname, where)
         else

Seth Falcon <sfalcon at fhcrc.org> writes: