Skip to content

How to see any R package code?

3 messages · Zhijiang Wang, Paul Hiemstra, Uwe Ligges

#
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.
#
Zhijiang Wang wrote:
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
#
Zhijiang Wang wrote:
See the R Help Desk
Ligges, U. (2006): R Help Desk: Accessing the Sources. R News 6 (4), 
43-45, available from http://journal.r-project.org/

Best,
Uwe Ligges