Optim constrained optimization issues

Please provide a self-contained example and the version of Optim that you are using.