[R] How to find where the source code of an R function or package is installed?

Peng Yu pengyu.ut at gmail.com
Sun Nov 29 05:00:21 CET 2009


I'm wondering where is the source of an R function or a package is.
For example, where is 'attributes'?

> attributes
function (obj)  .Primitive("attributes")

I also do understand what .Primitive mean. Could somebody let me know
how to locate source file in an R installation? Why typing
'attributes' does not give its definition?




More information about the R-help mailing list