|
197 | 197 | more about the value in its \code{warning} message. It no longer |
198 | 198 | replaces \code{-Inf} by the largest \emph{positive} finite number. |
199 | 199 |
|
200 | | - \item The documentation of \code{gamma} and \code{is.numeric} is more |
201 | | - specific, thanks to the contributors of \PR{18677}. |
| 200 | + \item The documentation of \code{gamma()} and \code{is.numeric()} |
| 201 | + is more specific, thanks to the contributors of \PR{18677}. |
202 | 202 |
|
203 | 203 | \item New dataset \code{gait} thanks to \I{Heather Turner} and |
204 | 204 | \I{Ella Kaye}, used in examples. |
|
221 | 221 | \item This update was mainly bug fixes but contained a barely |
222 | 222 | documented major change. The set of BLAS routines has been |
223 | 223 | unchanged since 1988, so throughout \R's history. This update |
224 | | - introduced two new BLAS routines \code{dgemmtr} and |
225 | | - \code{zgemmtr} which are now used by LAPACK routines. This means |
226 | | - that BLAS implementations are no longer interchangeable. |
| 224 | + introduced new BLAS routines \code{dgemmtr} and \code{zgemmtr} |
| 225 | + which are now used by LAPACK routines. This means that BLAS |
| 226 | + implementations are no longer interchangeable. |
227 | 227 |
|
228 | 228 | \item To work around this, \R can be configured with option |
229 | 229 | \option{--with-2025blas} which arranges for the 2025 BLAS |
|
375 | 375 | when in C17 mode. |
376 | 376 |
|
377 | 377 | A fair amount of code has assumed this: it may be changed to a |
378 | | - smaller type in future. |
| 378 | + smaller type in future. In particular, as standard compilers do |
| 379 | + not check the validity of assignment to an \code{enum}, it has been |
| 380 | + possible to assign \code{NA_INTEGER} to an \code{Rboolean} |
| 381 | + variable, coerce it to \code{int} and recover the value. |
| 382 | + %% There are claims that the Green Hills compiler can. |
| 383 | + %% In C++ rhis was confirmed as undefined behaviour in |
| 384 | + %% https://cplusplus.github.io/CWG/issues/1766.html |
| 385 | + %% Some versiins of UBSAN caan check it with -fsanitize=enum |
379 | 386 |
|
380 | 387 | If there were a platform which used an underlying type of a |
381 | 388 | different size this would be an \abbr{ABI}-breaking change (but we are |
382 | 389 | unaware of any such platform). |
383 | 390 |
|
384 | 391 | \item Header \file{R_ext/Boolean.h} now ensures a \code{bool} type |
385 | 392 | is available either as a keyword (C23 and C++) or by including the |
386 | | - C99 header \file{stdbool.h}. This is used in places in \R itself |
| 393 | + C99 header \file{stdbool.h}. This is bwing used internally in \R |
387 | 394 | to replace \code{Rboolean} by \code{bool}. |
388 | 395 |
|
389 | 396 | \item There are a new functions \code{asRboolean} and |
390 | 397 | \code{asBool}, variants of \code{asLogical} more suited to |
391 | 398 | converting logical arguments to \code{Rboolean} or to \code{bool}. |
392 | 399 |
|
393 | 400 | \item Header \file{R_exts/Error.h} now ensures that |
394 | | - \code{Rf_error} and similar are maeked with the \code{noreturn} |
395 | | - attribute from C++ under all compilers. |
| 401 | + \code{Rf_error} and similar are given a \code{noreturn} |
| 402 | + attribute when uased from C++ under all compilers. |
396 | 403 | } |
397 | 404 | } |
398 | 405 |
|
|
498 | 505 | \command{autoconf}-generated \command{configure} scripts. |
499 | 506 |
|
500 | 507 | \item \command{R CMD check} gains option \option{--run-demo} to |
501 | | - check demo scripts like tests. |
| 508 | + check demo scripts analogously to tests. |
502 | 509 |
|
503 | 510 | \item \code{R CMD build} now supports \option{--compression=zstd} |
504 | 511 | on platforms with sufficient support for \command{zstd}. |
|
684 | 691 | \code{grep()}, \code{strsplit()} and similar took |
685 | 692 | non-\code{TRUE}/\code{FALSE} |
686 | 693 | values of their logical arguments as \code{FALSE}, but these were |
687 | | - almost always mistakes and are now reported as \code{NA}. |
| 694 | + almost always nismatches of unnamed arguments and are now reported |
| 695 | + as \code{NA}. |
688 | 696 | } |
689 | 697 | } |
690 | 698 | } |
|
0 commit comments