It seems to be in optimize.c
Rgonzui has a very nice search facility for source of R or CRAN packages
(however it is against R 2.8.0 source):
http://rgonzui.nakama.ne.jp/R/markup/R-2.8.0/src/main/optimize.c?fm=c&q=nlm#
l378
-Christos
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Ravi Varadhan
> Sent: Thursday, February 19, 2009 1:00 PM
> To: r-help at r-project.org
> Subject: [R] Source code for nlm()
>
> Hi,
>
> Where can I find the source code for nlm()? I dowloaded the
> R2.8.1.tar.gz file and looked at all the .c and .f files, but
> couldn't find either nlm.c or nlm.f
>
> There is an nlm.r file, but that is not useful.
>
> Thanks for any help,
> Ravi.
>
> --------------------------------------------------------------
> --------------
> -------
>
> Ravi Varadhan, Ph.D.
>
> Assistant Professor, The Center on Aging and Health
>
> Division of Geriatric Medicine and Gerontology
>
> Johns Hopkins University
>
> Ph: (410) 502-2619
>
> Fax: (410) 614-9625
>
> Email: rvaradhan at jhmi.edu
>
> Webpage:
> http://www.jhsph.edu/agingandhealth/People/Faculty/Varadhan.html
>
>
>
> --------------------------------------------------------------
> --------------
> --------
>
>
>
> [[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.
>
>