Skip to content
Back to formatted view

Raw Message

Message-ID: <4AF29053.305@geo.uu.nl>
Date: 2009-11-05T08:44:03Z
From: Paul Hiemstra
Subject: How to see any R package code?
In-Reply-To: <457394092.12156@egw.bjut.edu.cn>

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