[R] how to study the code of R

Kjetil Brinchmann Halvorsen kjetil at acelerate.com
Tue Oct 19 01:07:45 CEST 2004


rongguiwong wrote:

>i want to study R programming by studying the existing code from R itself,but 
>i don't know how to read the code,can any one give me some guide?
>my R is installed in /usr/lib/R/
>
>  
>
One trick which can be usefull for a start is to use debug.
Choose some function to learn, say lm.
Say
debug(lm)

and ten use lm in a small example. You can go by the evaluation of the 
code step by step,
it can be illuminating

Kjeti


>[ronggui at mylinux ronggui]$ /usr/lib/R/
>afm      bin      doc      etc      include  library  modules  share
>
>
>  
>
>>version
>>    
>>
>         _
>platform i586-mandrake-linux-gnu
>arch     i586
>os       linux-gnu
>system   i586, linux-gnu
>status
>major    1
>minor    9.1
>year     2004
>month    06
>day      21
>language R
>  
>
>
>______________________________________________
>R-help at stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>
>
>  
>


-- 

Kjetil Halvorsen.

Peace is the most effective weapon of mass construction.
               --  Mahdi Elmandjra




More information about the R-help mailing list