From rmh@surfer.sbm.temple.edu  Fri Dec 14 04:40:07 2001
From: rmh@surfer.sbm.temple.edu (Rich Heiberger)
Date: Thu, 13 Dec 2001 23:40:07 -0500 (EST)
Subject: [Rd] crash bug in get("function.name")() (PR#1211)
References: <200112112232.XAA15690@pubhealth.ku.dk>
 <3C16912C.75907CDA@statistik.uni-dortmund.de>
 <200112120020.fBC0KKL2512179@surfer.sbm.temple.edu>
 <x23d2g37o4.fsf@blueberry.kubism.ku.dk>
Message-ID: <200112140440.fBE4e7R2530944@surfer.sbm.temple.edu>

I tried the same exercise in S-Plus 6.  S-Plus 6 rejects any direct use
of a method.  It requires use of the generic.  It provides an error message
that might make sense to us, but probably not to a user.  The message
is consistent with Luke's intuition of coming into the middle of a sequence
that was not properly initiated with UseMethod.

Professional Edition Version 6.0.3 Release 2 for Microsoft Windows : 2001 

> tmp <- factor(1:3)
> tmp
[1] 1 2 3
> print.factor(tmp)
Warning messages:
  the "..." object should be a list but has mode "missing"
Problem in NextMethod("print", quote = quote): argument "..1" is missing with no default 
Use traceback() to see the call stack
> get("print.factor")(tmp)
Warning messages:
  the "..." object should be a list but has mode "missing"
Problem in NextMethod("print", quote = quote): argument "..1" is missing with no default 
Use traceback() to see the call stack
> 
> get("print")(tmp)
[1] 1 2 3
>

Rich
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] crash bug in get("function.name")() (PR#1211)
Rich Heiberger