[Rd] Subclasses of class "call" not possible in R.

From: Vitalie S. <spinuvit.list_at_gmail.com>
Date: Wed, 17 Nov 2010 13:31:37 +0100

Hello Everyone!

I am trying to extend the class "call", but keep getting errors whatever I do:

setClass("mycall", contains = "call")
#[1] "mycall"

new("mycall")
#Error in function (object) :
# error in evaluating the argument 'object' in selecting a method for function
#'show'

new("mycall", quote(a+b))
#Error in .getClassFromCache(Class, where) :
# could not find function "<undef>"

I understand this is rarely needed, but for some special reasons I really need the class "call" (as usually returned by quote and substitute) and not class "expression".

Would really appreciate any workarounds.

Thanks,
Vitalie.

platform       i386-pc-mingw32                             
arch           i386                                        
os             mingw32                                     
system         i386, mingw32                               
status         Patched                                     
major          2                                           
minor          12.0                                        
year           2010                                        
month          11                                          
day            01                                          
svn rev        53513                                       
language       R                                           
version.string R version 2.12.0 Patched (2010-11-01 r53513)

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 17 Nov 2010 - 12:34:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 17 Nov 2010 - 14:30:23 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.

list of date sections of archive