[R] truly object oriented programming in R

Gabor Grothendieck ggrothendieck at myway.com
Thu Aug 12 17:40:52 CEST 2004

Jason Liao <jg_liao <at> yahoo.com> writes:

: Good morning! I recently implemented a KD tree in JAVA for faster
: kernel density estimation (part of the code follows). It went well. To
: hook it with R, however, has proved more difficult. My question is: is
: it possible to implement the algorithm in R? My impression seems to
: indicate no as the code requires a complete class-object framework that
: R does not support. But is there an R package or something that may
: make it possible? Thanks in advance for your help.

R comes with the S3 and S4 object systems out-of-the-box and there is an
addon package oo.R available at:


that provides a more conventional OO system.   Its likely that one or more
of these would satisfy your requirements.

More information about the R-help mailing list