From ross at biostat.ucsf.edu  Thu May 18 19:45:17 2006
From: ross at biostat.ucsf.edu (Ross Boylan)
Date: Thu, 18 May 2006 10:45:17 -0700
Subject: [Rd] S4 classes and C
Message-ID: <1147974317.10544.23.camel@iron.psg.net>

Is there any good source of information on how S4 classes (and methods)
work from C?

E.g., for reading
how to read a slot value
how to invoke a method
how to test if you have an s4 object

For writing, how to make a new instance of an S4 object.

I've found scattered hints in the archive, including a link to a talk on
this subject "I am using C code to create an S4 object based on Douglas
Bates's example in his lecture notes on
<http://www.ci.tuwien.ac.at/Conferences/DSC-2003/Tutorials/RExtensions/slide
s.pdf>"
but the link is no longer good (after putting it all on one line).

"Writing R Extensions" (2.3.0 version) makes no reference to this topic
that I can see.
-- 
Ross Boylan                                      wk:  (415) 514-8146
185 Berry St #5700                               ross at biostat.ucsf.edu
Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739                     hm:  (415) 550-1062



[Rd] S4 classes and C
Ross Boylan