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/ [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>
On Mon, 18 Oct 2004 23:36:05 +0800, rongguiwong <0034058 at fudan.edu.cn> 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/ > >[ronggui at mylinux ronggui]$ /usr/lib/R/ >afm bin doc etc include library modules shareYou can see some of it by typing a function name, but to see it all, you need a source installation, which you don't have (the source is mostly in the src subdirectory). You can download one from http://cran.r-project.org. Duncan Murdoch
You need to download the full source code for R. The latest version (2.0.0) is available at http://cran.r-project.org/src/base/R-2/R-2.0.0.tar.gz -roger 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/ > > [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 >-- Roger D. Peng http://www.biostat.jhsph.edu/~rpeng/
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