[R] How to see any R package code?

Paul Hiemstra p.hiemstra at geo.uu.nl
Thu Nov 5 09:44:03 CET 2009


Zhijiang Wang wrote:
>    Dear All,
>    I want to see a R package code, how can I do that?
>    what file in the package?
>
>    --
>
> Best wishes,
> Zhijiang Wang
> --------------------------------------------
> PHD Student
> Room 212, Science buliding,
> The International WIC Institute,
> College of Computer Science and Technology,
> Beijing University of Technology,
> Beijing, China.
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   
Hi Zhijiang,

When you want to look at the code of a particular function, pass the 
command without the brackets, e.g. for lm:

 > lm

Alternatively, you can download the source package and go to the 
subdirectory R/. All the R code is located there.

cheers,
Paul

-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul




More information about the R-help mailing list