Skip to content

Commit

Permalink
tweaks, recommend options(warn = 1) in tests
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@80032 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
ripley committed Feb 23, 2021
1 parent c89978c commit 3a3073b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion doc/manual/R-exts.texi
Original file line number Diff line number Diff line change
Expand Up @@ -5037,7 +5037,7 @@ ones. But not all platforms use those CPUs, and not all@footnote{Not
doing so is the default on Windows, overridden for the @R{} executables.
It is also the default on some Solaris compilers.} which use them
configure them to allow the use of extended precision. In particular,
32-bit ARM CPUs do not have extended precision nor long doubles, and
current ARM CPUs do not have extended precision nor long doubles, and
@command{clang} currently has long double the same as double on all ARM
CPUs. On the other hand some CPUs have higher-precision modes which may
be used for @code{long double}, notably 64-bit PowerPC and Sparc.
Expand All @@ -5053,6 +5053,16 @@ mitigate the effects of extended-precision calculations.
Tests which involve random inputs or non-deterministic algorithms should
normally set a seed or be tested for many seeds.

@item
Tests should use @code{options(warn = 1)} as reporting

@example
There were 22 warnings (use warnings() to see them)
@end example

@noindent
is pointless, especially for automated checking systems.

@end itemize

@node PDF size, Check timing, Writing portable packages, Writing portable packages
Expand Down

0 comments on commit 3a3073b

Please sign in to comment.