Aakriti Kushwaha
2025-Dec-30 17:00 UTC
[Rd] [PATCH] Three improvements to confint() documentation and S4 support
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>
Ben Bolker
2025-Dec-30 17:42 UTC
[Rd] [PATCH] Three improvements to confint() documentation and S4 support
It looks like both items 1 and 3 have already been implemented in the development version of R; see https://github.com/r-devel/r-svn/blob/main/doc/NEWS.Rd (search for "notin" or "confint.default") It looks like your attached patches got stripped from the e-mail. As https://www.r-project.org/mail.html discusses: > Furthermore, most binary e-mail attachments are not accepted, i.e., they are removed from the posting completely. As an exception, we allow application/pdf, application/postscript, and image/png (and x-tar and gzip on R-devel). You can use text/plain as well, or simply paste text into your message instead. (I don't know what format your attachments were in, but they didn't make it.) Ben Bolker On 12/30/25 12:00, Aakriti Kushwaha 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 at 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.
Reed A. Cartwright
2025-Dec-30 18:22 UTC
[Rd] [PATCH] Three improvements to confint() documentation and S4 support
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 at 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >[[alternative HTML version deleted]]