From michael.weylandt at gmail.com  Tue May 15 16:29:00 2012
From: michael.weylandt at gmail.com (R. Michael Weylandt)
Date: Tue, 15 May 2012 10:29:00 -0400
Subject: [Rd] Object-oriented programming (OOP)
In-Reply-To: <CANk6ovHqFRC5WcEcsMa2-h5TJzscbBvTw1ow+U+szBeH6g_k_w@mail.gmail.com>
References: <CANk6ovHqFRC5WcEcsMa2-h5TJzscbBvTw1ow+U+szBeH6g_k_w@mail.gmail.com>
Message-ID: <CAAmySGN=4fJDep3C10LSy451mmUPcrLvZUOsQDreEXFg6jqrLw@mail.gmail.com>

R has multiple OO paradigms, but since you're starting from a point of
"I want object oriented," I'd guess you would be interested in the S4
paradigm which is stricter rather than the far more sane S3 system.

If S4 is for you, there are some good links here:
http://stackoverflow.com/questions/4143611/sources-on-s4-objects-methods-and-programming-in-r

See also the relatively new "Reference Classes" -- I don't have much
documentation on those, but you could start here:
http://www.bioconductor.org/help/course-materials/2010/HeidelbergNovember2010/ReferenceClasses-Morgan.pdf

Best,
Michael

On Tue, May 15, 2012 at 9:55 AM, Alfredo Naime <alfredonaim at gmail.com> wrote:
> Hello everybody, please excuse my bad English. I am Alfredo Naime and
> I'm from to Venezuela.
>
> I want to make a lib with tools for simulation (queues, inventories,
> factory, etc.) using object-oriented programming (OOP).
>
> You have any manuals on the handling of data types, classes,
> inheritance, etc. in R with examples and how to make a R lib.
>
> Thank you, very much.
>
> Alfredo
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] Object-oriented programming (OOP)
R. Michael Weylandt