Re: [Rd] constrOptim( ): conflict between help page and code

From: Ravi Varadhan <>
Date: Tue, 22 Jun 2010 18:18:56 -0400

Dear R-devel,

I have re-worked the `constrOptim' function extensively to fix some bugs, and also to provide some extended functionality. Please find attached the patch (with comments on the bug fixes and improvements).

I am also attaching a "test" file that shows the difference between the "old" and "new" versions of `constrOptim'.


Ravi Varadhan, Ph.D.
Assistant Professor,
Division of Geriatric Medicine and Gerontology School of Medicine
Johns Hopkins University

Ph. (410) 502-2619

> Dear Ravi,
> What we (R-core) really want with such postings is a "diff" aka "patch"
> against the R-devel (!) sources,
> which you can get from
> You produce a patch with e.g.
> diff -ubBw <previousversion>constrOptim.R <myversion>constrOptim.R
> send that (possibly as attached file e.g. constrOptim.patch)
> to R-devel
> Best regards,
> Martin mailing list
Received on Tue 22 Jun 2010 - 22:24:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 23 Jun 2010 - 05:21:13 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive