There is a mistake in my e-mail Of course should be slot(object,name,check=FALSE)<-value
Sorry. Eryk *********** REPLY SEPARATOR *********** On 5/27/2004 at 2:56 PM Wolski wrote: >Hi! > >I think that there are no mechanism in S4 to make slots "private". >But you as a package developer can of course provide accessor functions to >a public slot anyway and use slot(myslot,value,check=FALSE) >to switch of the function checkSlotAssignment function and speed up your >code. > >This is how I interpretation of this text of John Chambers. > > >Sincerely >Eryk > > > >*********** REPLY SEPARATOR *********** > >On 5/27/2004 at 2:01 PM Matthias Kohl wrote: > >>Hi all, >> >>in the help for RClassUtils I found the expression "privileged slots" in >>function "checkSlotAssignment" with the explanation: >> >>/privileged slots (those that can only be set by accesor functions >>defined along with the class itself)/ >> >>I thought all slots of a (not private) class can be a accessed by a user >>via the @ Operator. >>Is there a way to make a single slot of a class (not the whole class) >>private, so that you can access this slot only via an accessor function >>(not via @)? >> >>Thanks, for your help >>Matthias >> >>______________________________________________ >>[EMAIL PROTECTED] mailing list >>https://www.stat.math.ethz.ch/mailman/listinfo/r-help >>PLEASE do read the posting guide! >http://www.R-project.org/posting-guide.html > > > >Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic >Ihnestrasse 63-73 14195 Berlin 'v' >tel: 0049-30-83875219 / \ >mail: [EMAIL PROTECTED] ---W-W---- >http://www.molgen.mpg.de/~wolski > >______________________________________________ >[EMAIL PROTECTED] mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Dipl. bio-chem. Eryk Witold Wolski @ MPI-Moleculare Genetic Ihnestrasse 63-73 14195 Berlin 'v' tel: 0049-30-83875219 / \ mail: [EMAIL PROTECTED] ---W-W---- http://www.molgen.mpg.de/~wolski ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html