Skip to content
Prev 8380 / 12125 Next

[R-pkg-devel] tryCatch() doesn't capture errors due to && or || with R CMD check --as-cran

Hi Martin,

I'm not sure I understand what you mean regarding suppressed warnings
in testthat.

- All warnings are reported to users by `devtools::test()`, with
  accompanying backtraces. They are not hidden.

- R CMD check doesn't report warnings emitted from files in `tests/`.

If you need some sort of warning to surface as errors, warnings, or
notes in R CMD check, it should be possible to come up with
something. This could take the form of special classes of conditions
that R CMD check would catch and emit corresponding diagnostics
for. We would change testthat to make sure all such conditions are
properly emitted during checks.

Best,
Lionel
On 9/1/22, Martin Maechler <maechler at stat.math.ethz.ch> wrote: