Re: [R] Help with integrating R and c/c++

2011-02-06 Thread Ravi Varadhan
Hi Rohit, It is fine if you are using the Newton's method just as an excuse to learn Rcpp. If, however, your main goal is to develop a package to implement Newton's method, then you need to stop and look at the numerous optimization packages available in R. A good place to start would be the

Re: [R] Help with integrating R and c/c++

2011-02-06 Thread Dirk Eddelbuettel
On 6 February 2011 at 20:58, Rohit Pandey wrote: | Hi, | | I have been using R for close to two years now and have grown quite | comfortable with the language. I am presently trying to implement an | optimization routine in R (Newton Rhapson). I have some R functions that | calculate the gradient

Re: [R] Help with integrating R and c/c++

2011-02-06 Thread Martin Morgan
On 02/06/2011 07:28 AM, Rohit Pandey wrote: > Hi, > > I have been using R for close to two years now and have grown quite > comfortable with the language. I am presently trying to implement an > optimization routine in R (Newton Rhapson). I have some R functions that > calculate the gradient and h

Re: [R] Help with integrating R and c/c++

2011-02-06 Thread Douglas Bates
On Sun, Feb 6, 2011 at 10:56 AM, David Winsemius wrote: > > On Feb 6, 2011, at 10:28 AM, Rohit Pandey wrote: > >> Hi, >> >> I have been using R for close to two years now and have grown quite >> comfortable with the language. I am presently trying to implement an >> optimization routine in R (Newt

Re: [R] Help with integrating R and c/c++

2011-02-06 Thread David Winsemius
On Feb 6, 2011, at 10:28 AM, Rohit Pandey wrote: Hi, I have been using R for close to two years now and have grown quite comfortable with the language. I am presently trying to implement an optimization routine in R (Newton Rhapson). I have some R functions that calculate the gradient and h