[Rd] S4 Objects [Sec=Unclassified]

From: Troy Robertson <Troy.Robertson_at_aad.gov.au>
Date: Tue, 02 Jun 2009 11:28:44 +1000

I am new to R programming but have dived into a medium sized modelling software development project.

Having come from a Java OO background I have a couple of questions about S4 objects.

Is there a way to make S4 slots (and methods) private and hence force the use of accessor methods?

Is there a straight-forward way to implement pass-by-reference for method parameters?

I am currently returning and overwritting updated objects which is clunky and costly and would like a more efficient way of doing this.

Can anyone point me to some useful texts on S4 programming apart from the following:

Chambers - Software for Data Analysis: Programming with R

Venables - S Programming

Thanks heaps


    Australian Antarctic Division - Commonwealth of Australia IMPORTANT: This transmission is intended for the addressee only. If you are not the intended recipient, you are notified that use or dissemination of this communication is strictly prohibited by Commonwealth law. If you have received this transmission in error, please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and DELETE the message.

        Visit our web site at http://www.antarctica.gov.au/

        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 02 Jun 2009 - 06:21:13 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 Tue 02 Jun 2009 - 13:34:39 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