[m p]
>Can someone point to a package with Newton-Raphson method using 
>analytic derivatives. This is just for a 1D problem. Could not find 
>easily anything suitable.
You may check:
  http://pinard.progiciels-bpi.ca/plaisirs/animations/NRart/R/nr.image.R
If you remove the graphics-related lines, the few remaining lines is
Newton-Raphson over an expression.  Don't take this too seriously, it 
was a mere toy with this to get an initial feel of the R language.  :-)
-- 
Fran?ois Pinard   http://pinard.progiciels-bpi.ca