[Rd] [PATCH] Three improvements to confint() documentation and S4 support
Ben Bolker
bbo|ker @end|ng |rom gm@||@com
Tue Dec 30 19:40:56 CET 2025
Sorry for my confusion. I've now looked at the patches (which are
here -- they were originally proposed as pull requests in Winston
Chang's Github mirror of the R SVN source tree:
https://github.com/wch/r-source/pull/22/changes/589eeaf9aa53cb4a5fbfc751e95e4706f2b26f37
)
Looking at the NEWS file it doesn't seem that news entries typically
have examples. It might be more useful to add these examples to the
appropriate Rd files. For example, it doesn't look like any examples
were added to src/library/base/man/substr.Rd when this change was committed:
https://github.com/wch/r-source/commit/761fbd17655e918210610adaf057858910ca2b2f
As I mention here https://stackoverflow.com/a/8066062/190277 ,
R-core tend to be very conservative about accepting patches to the code.
Take a look at https://contributor.r-project.org/ for some of the
supports for getting started with contributions to the R code base ...
cheers
Ben Bolker
On 12/30/25 13:22, Reed A. Cartwright wrote:
> I believe that what is being proposed here are changes to recent entries in
> NEWS.Rd.
>
> On Tue, Dec 30, 2025, 10:04 Aakriti Kushwaha <aakriti.kushwaha.ak using gmail.com>
> wrote:
>
>> Hello R developers,
>>
>>
>> I would like to contribute three improvements to the R source:
>>
>>
>> 1.
>>
>> *S4 object support for **confint.default()*
>>
>> -
>>
>> confint.default() now works on S4 objects as long as suitable coef()
>> and vcov() methods exist.
>>
>> 2.
>>
>> *substring()** and **substr()** improvements*
>>
>> -
>>
>> Both functions now accept i2 = NULL, allowing extraction until the
>> end of the string.
>> -
>>
>> Improves convenience and aligns with user expectations.
>>
>> 3.
>>
>> *Introduction of **%notin%** operator*
>>
>> -
>>
>> %notin% added as a base R idiom for !(x %in% table).
>> -
>>
>> Enhances readability and avoids repeated negation in user code.
>>
>>
>>
>> *Motivation:*
>>
>>
>> -
>>
>> Enhance S4 object compatibility.
>> -
>>
>> Improve string handling convenience.
>> -
>>
>> Provide a cleaner syntax for common negation of %in%.
>>
>>
>> *Impact:*
>>
>>
>> -
>>
>> Backward compatible; no breaking changes for existing S3 workflows.
>>
>> The corresponding patch files are attached to this email.
>>
>> I hope these changes are helpful. I look forward to any feedback or
>> suggestions you may have.
>>
>>
>> Thank you for your time and for maintaining R!
>>
>>
>> Best regards,
>>
>> Aakriti Kushwaha
>>
>> GitHub: aakritixyz <https://github.com/aakritixyz>
>> ______________________________________________
>> R-devel using r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
--
Dr. Benjamin Bolker
Professor, Mathematics & Statistics and Biology, McMaster University
Associate chair (graduate), Mathematics & Statistics
Director, School of Computational Science and Engineering
* E-mail is sent at my convenience; I don't expect replies outside of
working hours.
More information about the R-devel
mailing list