Andrew Crane-Droesch
2014-May-03 02:15 UTC
[R] Seeking well-commented versions of mgcv source code
Dear List, I'm looking for well-commented versions of various functions comprising mgcv, so that I can modify a piece of it for a project I'm working on. In particular I'm looking for * testStat * summary.gam * liu2 * simf Obviously I can find these by typing mgcv:::whatever. But there are a lot of nested if statements, making it difficult to follow. Comments in the code describing exactly what is happening at each step would make my life a lot easier. Where can I find more-detailed versions of the code? Thanks, Andrew [[alternative HTML version deleted]]
Jeff Newmiller
2014-May-03 04:55 UTC
[R] Seeking well-commented versions of mgcv source code
Read the Posting Guide, which points out that this list is for plain text emails so you should set your email program appropriately. Read the Writing R Extensions document, which tells you how packages are constructed, and from which it will become clear that you want the tar.gz package file for whatever package you are interested in. --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On May 2, 2014 7:15:27 PM PDT, Andrew Crane-Droesch <andrewcd at gmail.com> wrote:>Dear List, > >I'm looking for well-commented versions of various functions comprising > >mgcv, so that I can modify a piece of it for a project I'm working on. > >In particular I'm looking for > > * testStat > * summary.gam > * liu2 > * simf > >Obviously I can find these by typing mgcv:::whatever. But there are a >lot of nested if statements, making it difficult to follow. Comments in > >the code describing exactly what is happening at each step would make >my >life a lot easier. > >Where can I find more-detailed versions of the code? > >Thanks, >Andrew > > > [[alternative HTML version deleted]] > >______________________________________________ >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.
William Dunlap
2014-May-03 19:26 UTC
[R] Seeking well-commented versions of mgcv source code
You can download the source code for the package with download.packages("mgcv", type="source", destdir="/tmp") Bill Dunlap TIBCO Software wdunlap tibco.com On Fri, May 2, 2014 at 7:15 PM, Andrew Crane-Droesch <andrewcd at gmail.com> wrote:> Dear List, > > I'm looking for well-commented versions of various functions comprising > mgcv, so that I can modify a piece of it for a project I'm working on. > In particular I'm looking for > > * testStat > * summary.gam > * liu2 > * simf > > Obviously I can find these by typing mgcv:::whatever. But there are a > lot of nested if statements, making it difficult to follow. Comments in > the code describing exactly what is happening at each step would make my > life a lot easier. > > Where can I find more-detailed versions of the code? > > Thanks, > Andrew > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
> I'm looking for well-commented versions of various functions comprising > mgcv,Commented versions are available e.g. in mgcv_*.*-**.tar.gz from CRAN (unzip and look in mgcv/R). Well commented versions is another matter... best, Simon -- Simon Wood, Mathematical Science, University of Bath BA2 7AY UK +44 (0)1225 386603 http://people.bath.ac.uk/sw283