Re: [Rd] a question about optim.R and optim.c in R

2014-07-07 Thread Michael Weylandt
> On Jul 7, 2014, at 4:34 PM, Zhiyuan Dong wrote: > > Hi, I am learning R by reading R source code. Here is one question I have > about the optim function in R. > > The context : In the optim.R, after all the prep steps, the main function > call call is made via : > > .External2(C_optim, par,

Re: [Rd] a question about optim.R and optim.c in R

2014-07-07 Thread Sarah Goslee
Hi, On Mon, Jul 7, 2014 at 4:34 PM, Zhiyuan Dong wrote: > Hi, I am learning R by reading R source code. That's very brave of you. You might also try reading some of the documentation and contributed documentation, like: http://adv-r.had.co.nz/C-interface.html and http://cran.r-project.org/doc/m