4.6.2 (sonoma)
Latest
OpenNavo editorial
R 4.6.2 fixes rhyper integer overflow, nlminb and ksmooth crashes, besselI/besselK segfaults, and Windows path.expand issues.
rhyper(N, m, n, k)now switches to the “large” scenario whenm + nis larger than., preventing integer overflow.Machine$integer. max - Fixed a long-standing Fortran compiler optimization bug in
nlminbwith constraints. - Wrappers now duplicate a potentially shared wrapped object before returning a read-only pointer, so cached read-only pointers no longer become invalid.
writeChar()in a multibyte locale counts characters and bytes consistently and no longer overflows.ksmooth()no longer crashes or writes out of bounds with empty or zero-length arguments.besselI(1, 1e11)andbesselK()now warn and returnNaNinstead of segfaulting; too large|nu|values also returnNaN.dummy.handles non-syntactic variable names more robustly.coef() strsplit(str, perl=no longer accesses invalid memory with invalid UTF-8 input.TRUE, bytes=TRUE) strptime()returns correct results for"%OS"and week-number formats, fixing several longstanding issues.- Plain-text help (
Rd2txt) again recognizes paragraphs started with a non-indented Rd comment. - The Quartz device now draws long paths correctly.
- On Windows,
path.and similar work when the user name is not in ASCII.expand("~") - On Windows,
file.no longer opens files for exclusive access and copies the file time reliably.copy(*, date=TRUE)