archieve/cran-comments-inspector-1.0.0-s2.md

Submission summary

This is a resubmission.

I was asked to replace \dontrun{} by \donttest{} in the Rd-files. I was using \dontrun{} to wrap some examples that are supposed to throw informative error/warning messages and therefore should only be run interactively by the users.

Since R 4.0.0, R CMD check --as-cran runs \donttest examples by default, and hence wrapping the aforementioned examples with \donttest{} doesn't prevent them from being evaluated, which returns errors and causes the package fail R CMD check --as-cran:

checking examples with --run-donttest ... ERROR

Also, using \donttest{} with examples that are supposed to throw error messages doesn't interact well with example() because the execution is stopped at the first error and consequently not all examples are printed.

To avoid this, I opted for a different approach. The examples that are supposed to return error/warning messages are now wrapped in try() instead of \dontrun{}. As a consequence, they can be run without returning in actual errors. This solution also interacts well with example(): it prints all the error/warning messages without stopping the execution or returning errors.

Test environments

Local

| Platform | R version | R CMD check | R CMD check --as-cran | | ----- | ----- | ----- | ----- | | macOS Catalina 10.15.5 | R 4.0.1 | Ok | 2 NOTEs | | Ubuntu 20.04 LTS | R 4.0.1 | Ok | 2 NOTEs |

Win-builder

| R version | Status | | ----- | ----- | | R-oldrel | 1 NOTE | | R-release | 1 NOTE | | R-devel | 1 NOTE |

R-Hub

| Platform | R version | Status | | ----- | ----- | ----- | | macOS 10.13.6 High Sierra, CRAN's setup | R-release | Ok | | Oracle Solaris 10, x86, 32 bit | R-release | Ok | | Ubuntu Linux 16.04 LTS, GCC | R-devel | Ok | | Fedora Linux, GCC | R-devel | Ok | | Fedora Linux, clang, gfortran | R-devel | Ok | | Debian Linux, GCC | R-devel | Ok | | Windows Server 2008 R2 SP1, 32/64 bit | R-devel | Ok |

GitHub actions

| Platform | R version | Status | | ----- | ----- | ----- | | macOS Catalina 10.15 | R-oldrel, R-release, R-devel | Passing | | Ubuntu 16.04 | R-oldrel, R-release | Passing | | Windows Server 2019 | R-oldrel, R-release, R-devel | Passing |

Travis CI

| Platform | R version | Status | | ----- | ----- | ----- | | Linux (Xenial) | R-oldrel | Passed | | Linux (Xenial) | R-release | Passed | | Linux (Xenial) | R-devel | Passed |



ptfonseca/inspector documentation built on June 23, 2021, 8:21 p.m.