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

2014-07-08 Thread Prof J C Nash (U30A)
ols moves into retirement. Off-list communication about such ideas welcome. John Nash On 14-07-08 06:00 AM, r-devel-requ...@r-project.org wrote: > Message: 2 > Date: Mon, 7 Jul 2014 16:34:59 -0400 > From: Zhiyuan Dong > To: r-devel@r-project.org > Subject: [Rd] a question about optim.

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

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

2014-07-07 Thread Zhiyuan Dong
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, fn1, gr1, method, con, lower, upper). So, it seems to me, to follow