nloptr provides an R interface to NLopt, a free/open-source library for nonlinear optimization providing a common interface to a number of different optimization routines which can handle nonlinear constraints and lower and upper bounds for the controls.
The nelder mean example linked to below does not define the rosenbrock function used:
https://github.com/jyypma/nloptr/blob/69b2128533e4b8cd6b864eda19b9ed5897a3120e/man/neldermead.Rd#L65
Might want to include: