[R] Object "silhouette.default" not found. But I knew that it is there.

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue May 25 18:38:47 CEST 2004


Wolski wrote:

> Hi!
> 
> Thanks! You right. Have not realised it.
> 
> I do not wanted to call the function but I wanted to see the function definition. Its a great feature of R to be able to do it.
> I knew I cant do it because the function object is not in the namespace.
> Ive been confronted with the reverse side of namespaces.
> 
> On the other hand: 
> ?silhouette.default  works.
> It would be nice to have a way to display to source without going into the library directory.

I just told you (and Fritz did so last week in his keynote lecture) to 
specify the namespace explicitly using the ":::" operator as in:

  cluster:::silhouette.default

and you will see the source, so what's the point?

Uwe



> 
> 
> Sincerely
> Eryk
> 
> PS.
> 
> 
> *********** REPLY SEPARATOR  ***********
> 
> On 5/25/2004 at 6:17 PM Uwe Ligges wrote:
> 
> 
>>Wolski wrote:
>>
>>
>>>Hi!
>>>
>>> 
>>>
>>>
>>>>library(cluster)
>>>
>>>In this lib a function called silhoutte.default is defined
>>>than on the R prompt it type
>>>
>>>
>>>>silhouette.default
>>>
>>>Error: Object "silhouette.default" not found 
>>>R1.9.0
>>>The same error are at R1.8.1
>>>And I knew that a function silhoutte.default are present.
>>>
>>>But the same piece of code works in R1.6.2
>>>
>>>???
>>
>>Well, namespaces have been introduced in the meantime, and you have 
>>learned at the useR to call the generic silhouette() directly
>>or to use
>>   cluster:::silhouette.default
>>to get the code.
>>
>>Uwe Ligges
>>
>>
>>
>>
>>>Eryk
>>>
>>>Dipl. bio-chem. Eryk Witold Wolski    @    MPI-Moleculare Genetic   
>>>Ihnestrasse 63-73 14195 Berlin       'v'    
>>>tel: 0049-30-83875219               /   \    
>>>mail: wolski at molgen.mpg.de        ---W-W----   
>>
>>http://www.molgen.mpg.de/~wolski
>>
>>>______________________________________________
>>>R-help at stat.math.ethz.ch 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
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch 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: wolski at molgen.mpg.de        ---W-W----    http://www.molgen.mpg.de/~wolski
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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




More information about the R-help mailing list