[R] scoping with methods package

David R. Bickel dbickel at mail.mcg.edu
Tue Jul 30 17:51:03 CEST 2002

I am using the methods package in version 1.5.0 of R. I would like to write
a function that can be called by the methods of a class I defined, but that
cannot be called by external functions or by methods of other classes. This
function has arguments that are neither slots nor objects -- the arguments
are numbers to be supplied by the calling methods.

I would appreciate any suggestions on how to do this, or on how to do the
equivalent using a more object-oriented approach. I would also like to know
if the old-style classes might be better for this.

David Bickel

David R. Bickel, Assistant Professor
Medical College of Georgia
Office of Biostatistics and Bioinformatics

Tel.: 706-721-4697; Fax: 706-721-6294
dbickel at mail.mcg.edu or bickel at prueba.info

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list