[Rd] promptClass misses methods

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Fri 01 Dec 2006 - 06:29:06 GMT

I've had repeated problems with promptClass missing methods, usually telling me a class has no methods when it does.

In my current case, I've defined an S4 class "mspathCoefficients" with a print method
setMethod("print", signature(x="mspathCoefficients"), function(x, ...) { # etc

The file promptClass creates has no methods in it.
> showMethods(classes="mspathCoefficients")
Function: initialize (package methods)

    (inherited from: .Object="ANY")

Function: print (package base)

Function: show (package methods)

    (inherited from: object="ANY")

> getGeneric("print")

standardGeneric for "print" defined from package "base"

function (x, ...)
<environment: 0x84f2d88>
Methods may be defined for arguments: x

I've looked through the code for promptClass, but nothing popped out at me.

It may be relevant that I'm running under ESS in emacs. However, I get the same results running R from the command line.

Can anyone tell me what's going on here? This is with R 2.4, and I'm not currently using any namespace for my definitions.

Ross Boylan

R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Dec 01 17:34:34 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 01 Dec 2006 - 11:30:48 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.